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

21 lines
487 B
C#
Raw Normal View History

2024-05-11 15:26:47 +02:00
namespace Foxchat.Identity.Database.Models;
2024-05-19 17:20:45 +02:00
public class Account : BaseModel
2024-05-11 15:26:47 +02:00
{
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,
}
}