namespace Modules.User.Database.Database.Entities;

public class Account
{
    public Guid Id { get; set; }

    public User User { get; set; } = default!;
    public Guid UserId { get; set; } = default!;
    public string Email { get; set; } = default!;
    public string HashedPassword { get; set; } = default!;
    public DateTime CreationDate { get; set; } = default;

    public List<Session> Sessions { get; set; } = [];
    
    public List<AccountRole>  Roles { get; set; } = [];
    public List<AccountPermission>  Permissions { get; set; } = [];
    public List<AccountBan>  Bans { get; set; } = [];
    
    public uint Xmin { get; private set; }
    
    public bool Deleted { get; set; }
}