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

20 lines
487 B
C#

namespace Foxchat.Identity.Database.Models;
public class Account : BaseModel
{
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,
}
}