Foxchat.NET/Foxchat.Identity/Database/Models/Account.cs
2024-05-14 03:51:31 +02:00

21 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,
}
}