Files
amrez-nova-eop-services-api/AMREZ.EOP.Domain/Entities/Authentications/User.cs
Thanakarn Klangkasame 563a341a99 Add Login Module
2025-10-02 11:18:44 +07:00

22 lines
1003 B
C#

using AMREZ.EOP.Domain.Entities.Common;
namespace AMREZ.EOP.Domain.Entities.Authentications;
public sealed class User : BaseEntity
{
public string PasswordHash { get; set; } = default!;
public bool IsActive { get; set; } = true;
public int AccessFailedCount { get; set; }
public DateTimeOffset? LockoutEndUtc { get; set; }
public bool MfaEnabled { get; set; }
public string? SecurityStamp { get; set; }
public ICollection<UserIdentity> Identities { get; set; } = new List<UserIdentity>();
public ICollection<UserMfaFactor> MfaFactors { get; set; } = new List<UserMfaFactor>();
public ICollection<UserSession> Sessions { get; set; } = new List<UserSession>();
public ICollection<UserPasswordHistory> PasswordHistories { get; set; } = new List<UserPasswordHistory>();
public ICollection<UserExternalAccount> ExternalAccounts { get; set; } = new List<UserExternalAccount>();
public ICollection<UserRole> UserRoles { get; set; } = new List<UserRole>();
}