You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

76 lines
1.9 KiB

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