This commit is contained in:
sam 2024-05-11 15:26:47 +02:00
commit f6629fbb33
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
32 changed files with 1608 additions and 0 deletions

View file

@ -0,0 +1,21 @@
namespace Foxchat.Identity.Database.Models;
public class Account
{
public Ulid Id { get; init; } = Ulid.NewUlid();
public string Username { get; set; } = null!;
public string Email { get; set; } = null!;
public string Password { get; set; } = null!;
public AccountRole Role { get; set; }
public string? Avatar { get; set; }
public List<Token> Tokens { get; } = [];
public List<ChatInstance> ChatInstances { get; } = [];
public enum AccountRole
{
User,
Admin,
}
}