using System.ComponentModel.DataAnnotations; using Common.Enum; using Entity.Base; using SqlSugar; namespace Entity.DbModel.System.SysBaseObject { /// /// 系统用户表 /// [SugarTable("sys_user")] public partial class SysUser : EntityBase { /// /// 账号 /// [SugarColumn(ColumnName = "account")] public virtual string Account { get; set; } /// /// 密码 /// [SugarColumn(ColumnName = "password")] public virtual string Password { get; set; } = "123456"; /// /// 真实姓名 /// [SugarColumn(ColumnName = "real_name")] public virtual string RealName { get; set; } /// /// 昵称 /// [SugarColumn(ColumnName = "nick_name")] public string? NickName { get; set; } /// /// 头像 /// [SugarColumn(ColumnName = "avatar")] public string? Avatar { get; set; } /// /// 性别-男_1、女_2 /// [SugarColumn(ColumnName = "sex")] public GenderEnum Sex { get; set; } = GenderEnum.Male; /// /// 年龄 /// [SugarColumn(ColumnName = "age")] public int Age { get; set; } = 18; /// /// 出生日期 /// [SugarColumn(ColumnName = "birthday")] public DateTime? Birthday { get; set; } /// /// 民族 /// [MaxLength(32)] [SugarColumn(ColumnName = "nation")] public string? Nation { get; set; } /// /// 手机号码 /// [MaxLength(16)] [SugarColumn(ColumnName = "phone")] public string? Phone { get; set; } /// /// 证件类型 /// [SugarColumn(ColumnName = "card_type")] public CardTypeEnum CardType { get; set; } = CardTypeEnum.GatCard; /// /// 身份证号 /// [SugarColumn(ColumnName = "id_card_num")] public string? IdCardNum { get; set; } /// /// 邮箱 /// [SugarColumn(ColumnName = "email")] public string? Email { get; set; } /// /// 地址 /// [SugarColumn(ColumnName = "address")] public string? Address { get; set; } /// /// 政治面貌 /// [SugarColumn(ColumnName = "political_outlook")] public string? PoliticalOutlook { get; set; } /// /// 毕业院校 /// COLLEGE [SugarColumn(ColumnName = "college")] public string? College { get; set; } /// /// 办公电话 /// [SugarColumn(ColumnName = "office_phone")] public string? OfficePhone { get; set; } /// /// 紧急联系人 /// [SugarColumn(ColumnName = "emergency_contact")] public string? EmergencyContact { get; set; } /// /// 紧急联系人电话 /// [SugarColumn(ColumnName = "emergency_phone")] public string? EmergencyPhone { get; set; } /// /// 紧急联系人地址 /// [SugarColumn(ColumnName = "emergency_address")] public string? EmergencyAddress { get; set; } /// /// 个人简介 /// [SugarColumn(ColumnName = "introduction")] public string? Introduction { get; set; } /// /// 排序 /// [SugarColumn(ColumnName = "order_no")] public int OrderNo { get; set; } = 100; /// /// 状态 /// [SugarColumn(ColumnName = "status")] public StatusEnum Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// [SugarColumn(ColumnName = "remark")] public string? Remark { get; set; } /// /// 账号类型 /// [SugarColumn(ColumnName = "account_type")] public AccountTypeEnum AccountType { get; set; } = AccountTypeEnum.NormalUser; /// /// 直属主管Id /// [SugarColumn(ColumnName = "manager_user_id")] public long? ManagerUserId { get; set; } /// /// 工号 /// [SugarColumn(ColumnName = "job_num")] public string? JobNum { get; set; } /// /// 职级 /// [SugarColumn(ColumnName = "pos_level")] public string? PosLevel { get; set; } /// /// 职称 /// [SugarColumn(ColumnName = "pos_title")] public string? PosTitle { get; set; } /// /// 擅长领域 /// [SugarColumn(ColumnName = "expertise")] public string? Expertise { get; set; } /// /// 办公区域 /// [SugarColumn(ColumnName = "office_zone")] public string? OfficeZone { get; set; } /// /// 办公室 /// [SugarColumn(ColumnName = "office")] public string? Office { get; set; } /// /// 入职日期 /// [SugarColumn(ColumnName = "join_date")] public DateTime? JoinDate { get; set; } /// /// 最新登录Ip /// [SugarColumn(ColumnName = "last_login_ip")] public string? LastLoginIp { get; set; } /// /// 最新登录地点 /// [SugarColumn(ColumnName = "last_login_address")] public string? LastLoginAddress { get; set; } /// /// 最新登录时间 /// [SugarColumn(ColumnName = "last_login_time")] public DateTime? LastLoginTime { get; set; } /// /// 最新登录设备 /// [SugarColumn(ColumnName = "last_login_device")] public string? LastLoginDevice { get; set; } /// /// 电子签名 /// [SugarColumn(ColumnName = "signature")] public string? Signature { get; set; } } }