using SqlSugar; using System; using System.Collections.Generic; namespace DeviceRepair.Models { [Serializable] [SugarTable("UserInfo")] public class UserInfoModel { public UserInfoModel() { this.GUID = Guid.NewGuid(); } /// /// 自增长ID主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int AutoID { get; set; } [SugarColumn(ColumnName = "GUID")] public Guid GUID { get; set; } /// /// 登录名 /// [SugarColumn(ColumnName = "LoginCode")] public string LoginCode { get; set; } /// /// 密码 /// [SugarColumn(ColumnName = "PassWord")] public string PassWord { get; set; } /// /// 真实姓名 /// [SugarColumn(ColumnName = "RealName")] public string RealName { get; set; } /// /// 性别 /// [SugarColumn(ColumnName = "Gender")] public int Gender { get; set; } /// /// 出生日期 /// [SugarColumn(ColumnName = "Birthday")] public DateTime Birthday { get; set; } /// /// 联系电话 /// [SugarColumn(ColumnName = "Phone")] public string Phone { get; set; } /// /// 邮箱 /// [SugarColumn(ColumnName = "Email")] public string Email { get; set; } /// /// 权限组 /// [SugarColumn(ColumnName = "RoleGroup")] public int RoleGroup { get; set; } /// /// 权限列表 /// [SugarColumn(IsIgnore = true)] public List AuthItems { get; set; } /// /// 状态 /// [SugarColumn(ColumnName = "Status")] public bool Status { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "CreateBy")] public int CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CreateDate")] public DateTime CreateDate { get; set; } /// /// 修改人 /// [SugarColumn(ColumnName = "ModifyBy")] public int ModifyBy { get; set; } /// /// 修改时间 /// [SugarColumn(ColumnName = "ModifyDate")] public DateTime ModifyDate { get; set; } /// /// 最后登录时间 /// [SugarColumn(ColumnName = "LastLoginTime")] public DateTime LastLoginTime { get; set; } /// /// 最后修改密码时间 /// [SugarColumn(ColumnName = "LastPwdAlterTime")] public DateTime LastPwdAlterTime { get; set; } /// /// 说明 /// [SugarColumn(ColumnName = "Description")] public string Description { get; set; } /// /// 角色名称 /// [SugarColumn(IsIgnore = true)] public string RoleName { get; set; } /// /// 角色编码 /// [SugarColumn(IsIgnore = true)] public string RoleCode { get; set; } /// /// 创建人名称 /// [SugarColumn(IsIgnore = true)] public string CreateByName { get; set; } /// /// 修改人名称 /// [SugarColumn(IsIgnore = true)] public string ModifyByName { get; set; } } }