using Easy.DDD.Domain.Entities;
namespace Identity.Api.Clean.Domain.Entites;
///
/// 用户表
///
public class IdentityUser : AggregateRoot
{
public virtual Guid? TenantId { get; protected set; }
///
/// 昵称
///
public string NickName { get; set; }
///
/// 锁定的结束日期
///
public DateTime? LockoutEnd { get; set; }
///
/// 用户是否被锁定true为锁定,false没锁定
///
public bool LockoutEnabled { get; set; }
///
/// 账户
///
public string UserAccount { get; set; }
///
/// 密码
///
public string PasswordHash { get; set; }
///
/// true男,false女:默认false
///
public bool Gender { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// false没配置true配置
///
public bool EmailConfirmed { get; set; }
///
/// 手机号
///
public long? PhoneNumber { get; set; }
///
/// false没配置true配置
///
public bool PhoneNumberConfirmed { get; set; }
///
/// 此用户所属角色的导航属性。
///
public virtual ICollection Roles { get; protected set; }
///
/// 此组织单位的导航属性。
///
public virtual ICollection OrganizationUnits { get; protected set; }
public IdentityUser()
{
}
public IdentityUser(Guid id, string account, string passWordHash, string nickName, Guid? tenantId) : base(id)
{
TenantId = tenantId;
UserAccount = account;
PasswordHash = passWordHash;
NickName = nickName;
}
}