22 lines
527 B
C#
22 lines
527 B
C#
|
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,
|
||
|
}
|
||
|
}
|