Initial commit

This commit is contained in:
Mira 2025-01-27 18:36:44 +01:00
commit b0318f5602
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
26 changed files with 3247 additions and 0 deletions

View 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);
}
}