This commit is contained in:
zznty
2022-05-24 15:49:43 +07:00
commit c20e468b99
32 changed files with 1654 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using PetaPoco;
namespace LightPerms.Discord;
[TableName("linked_users")]
[PrimaryKey(nameof(Uid), AutoIncrement = true)]
public class LinkedUser
{
[Column]
public long Uid { get; set;}
[Column]
public string DiscordId { get; set; } = "0";
[Column]
public string ClientId { get; set; } = "0";
internal const string CreateTableSql = "create table if not exists linked_users (uid INTEGER PRIMARY KEY AUTOINCREMENT, discord_id TEXT NOT NULL, client_id TEXT NOT NULL);";
[Ignore]
public ulong ClientIdNumber => ulong.Parse(ClientId);
}