24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using AMREZ.EOP.Domain.Entities.Common;
|
|
|
|
namespace AMREZ.EOP.Domain.Entities.Authentications;
|
|
|
|
public sealed class User : BaseEntity
|
|
{
|
|
public Guid TenantId { get; set; }
|
|
|
|
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>();
|
|
} |