Foxchat.NET/Foxchat.Identity/Database/Models/Account.cs

22 lines
527 B
C#
Raw Normal View History

2024-05-11 15:26:47 +02:00
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,
}
}