Initial commit
This commit is contained in:
commit
b0318f5602
26 changed files with 3247 additions and 0 deletions
24
Entities/ScoreSaberUser.cs
Normal file
24
Entities/ScoreSaberUser.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using Newtonsoft.Json;
|
||||
using ProjectMakoto.Database;
|
||||
using ProjectMakoto.Enums;
|
||||
|
||||
namespace ProjectMakoto.Plugins.ScoreSaber.Entities;
|
||||
|
||||
[TableName("users")]
|
||||
public sealed class ScoreSaberUser : PluginDatabaseTable
|
||||
{
|
||||
public ScoreSaberUser(BasePlugin plugin, ulong identifierValue) : base(plugin, identifierValue)
|
||||
{
|
||||
this.Id = identifierValue;
|
||||
}
|
||||
|
||||
[ColumnName("UserId"), ColumnType(ColumnTypes.BigInt), Primary]
|
||||
internal ulong Id { get; init; }
|
||||
|
||||
[ColumnName("ScoreSaberId"), ColumnType(ColumnTypes.BigInt), Default("0")]
|
||||
public ulong ScoreSaberId
|
||||
{
|
||||
get => this.GetValue<ulong>(this.Id, "ScoreSaberId");
|
||||
set => this.SetValue(this.Id, "ScoreSaberId", value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue