using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SqlSugarDemo { /// /// 系统账号表 /// [SugarTable("Unit_SYS_User")] public partial class UserEntity { /// /// 系统账号Id /// [SugarColumn(IsPrimaryKey = true)] public Guid UserId { get; set; } /// /// 自定义账号 /// public string UserAccount { get; set; } /// /// 手机账号 /// public string PhoneAccount { get; set; } /// /// 邮箱账号 /// public string EmailAccount { get; set; } /// /// 企业微信 /// public string CompanyWX { get; set; } /// /// 密码凭证 /// public string Credential { get; set; } /// /// 账号类型|100401-平台管理员|100402-平台用户|100403-平台OpenId|100404-租户管理员|100405-租户用户|100406-租户OpenId|100407-游客 /// public int UserType { get; set; } /// /// 昵称 /// public string NickName { get; set; } /// /// 性别 /// public int Sex { get; set; } /// /// 有效开始时间 /// public DateTime? StartDate { get; set; } /// /// 有效截止时间 /// public DateTime? EndDate { get; set; } /// /// 是否强制修改密码 /// public bool IsChangePassword { get; set; } /// /// 安全手机号 /// public string SafePhone { get; set; } /// /// 是否实名|0-否|1-是 /// public int IsReal { get; set; } /// /// 真实姓名 /// public string RealName { get; set; } /// /// 身份证号 /// public string CardNo { get; set; } /// /// 最后登录时间 /// public DateTime? LastLoginDate { get; set; } /// /// 失败登录次数 /// public int? FailedLoginPwdCount { get; set; } /// /// 失败登录时间 /// public DateTime? VerificationLoginPwdDate { get; set; } /// /// 禁止用户登录时间 /// public DateTime? StopLoginTime { get; set; } /// /// 所属账号(账号表Id) /// public Guid ManageAccount { get; set; } /// /// 所属机构(账号所属公司的一级机构) /// public Guid ManageOrg { get; set; } /// /// 用户角色 /// [SugarColumn(IsIgnore = true)] public List UserRoleEntities { get; set; } /// /// 角色主表ID集合 /// [SugarColumn(IsIgnore = true)] public List RoleEntities { get; set; } } }