using SqlSugar; using System; using System.Collections.Generic; namespace JiepeiWMS.Model.Models { /// /// 用户信息表 /// public class sysUserInfo { public sysUserInfo() { } public sysUserInfo(string loginName, string loginPWD) { uLoginName = loginName; uLoginPWD = loginPWD; uRealName = uLoginName; uStatus = 0; uCreateTime = DateTime.Now; uUpdateTime = DateTime.Now; uLastErrTime = DateTime.Now; uErrorCount = 0; name = ""; } /// /// 用户ID /// [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)] public int uID { get; set; } /// /// 登录账号 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string uLoginName { get; set; } /// /// 登录密码 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string uLoginPWD { get; set; } /// /// 真实姓名 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string uRealName { get; set; } /// /// 状态 /// public int uStatus { get; set; } /// /// 备注 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 2000, IsNullable = true)] public string uRemark { get; set; } /// /// 创建时间 /// public System.DateTime uCreateTime { get; set; } = DateTime.Now; /// /// 更新时间 /// public System.DateTime uUpdateTime { get; set; } = DateTime.Now; /// ///最后登录时间 /// public DateTime uLastErrTime { get; set; } = DateTime.Now; /// ///错误次数 /// public int uErrorCount { get; set; } /// /// 真实姓名 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string name { get; set; } /// /// 性别 /// [SugarColumn(IsNullable = true)] public int sex { get; set; } = 0; /// /// 年龄 /// [SugarColumn(IsNullable = true)] public int age { get; set; } /// /// 生日 /// [SugarColumn(IsNullable = true)] public DateTime birth { get; set; } = DateTime.Now; /// /// 地址 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string addr { get; set; } [SugarColumn(IsNullable = true)] public bool tdIsDelete { get; set; } /// /// 工号 /// [SugarColumn(ColumnDataType = "varchar", Length = 10, IsNullable = true)] public string JobNo { get; set; } /// /// 部门id /// [SugarColumn(IsNullable = true)] public int? DepartmentId { get; set; } /// /// 主体id /// [SugarColumn(IsNullable = true)] public int SysOrgId { get; set; } /// /// 手机 /// [SugarColumn(IsNullable = true)] public string Mobile { get; set; } /// /// 角色id组 /// [SugarColumn(IsIgnore = true)] public List RIDs { get; set; } /// /// 角色名组 /// [SugarColumn(IsIgnore = true)] public List RoleNames { get; set; } /// /// 部门名字 /// [SugarColumn(IsIgnore = true)] public string DepartMentName { get; set; } /// /// 所属主休列表 /// [SugarColumn(IsIgnore = true)] public List SysOrgIds { get; set; } /// /// 新密码 /// [SugarColumn(IsIgnore = true)] public string uLoginPWDNew { get; set; } } }