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