using SqlSugar; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Entity; /// /// 用户表 /// [SugarTable("sys_user")] [Description("用户表")] public class SysUser : DBEntityTenant { /// /// 账号 /// [Required, MaxLength(20)] public string Account { get; set; } /// /// 密码(默认MD5加密) /// [Required, MaxLength(50)] public string Password { get; set; } /// /// 昵称 /// [MaxLength(20)] public string NickName { get; set; } /// /// 姓名 /// [MaxLength(20)] public string Name { get; set; } /// /// 英文名 /// [MaxLength(40)] public string EnName { get; set; } /// /// 头像 /// public string Avatar { get; set; } /// /// 生日 /// public DateTime Birthday { get; set; } /// /// 性别-男_1、女_2 /// public Gender Sex { get; set; } /// /// 邮箱 /// [MaxLength(20)] public string Email { get; set; } /// /// 手机 /// [MaxLength(20)] public string Phone { get; set; } /// /// 电话 /// [MaxLength(20)] public string Tel { get; set; } /// /// 最后登录IP /// [MaxLength(20)] public string LastLoginIp { get; set; } /// /// 最后登录时间 /// public DateTime LastLoginTime { get; set; } /// /// 管理员类型-超级管理员_1、非管理员_2 /// public AdminType? AdminType { get; set; } /// /// 状态-正常_0、停用_1、删除_2 /// public CommonStatus Status { get; set; } = CommonStatus.ENABLE; /// /// 大简云userid /// public string DjyUserId { get; set; } /// /// 用户代码 /// public string UserCode { get; set; } } public class _SysUser : DBEntityTenant { /// /// 账号 /// [Required, MaxLength(20)] public string Account { get; set; } /// /// 密码(默认MD5加密) /// [Required, MaxLength(50)] public string Password { get; set; } /// /// 昵称 /// [MaxLength(20)] public string NickName { get; set; } /// /// 姓名 /// [MaxLength(20)] public string Name { get; set; } /// /// 头像 /// public string Avatar { get; set; } /// /// 生日 /// public DateTime Birthday { get; set; } /// /// 性别-男_1、女_2 /// public Gender Sex { get; set; } /// /// 邮箱 /// [MaxLength(20)] public string Email { get; set; } /// /// 手机 /// [MaxLength(20)] public string Phone { get; set; } /// /// 电话 /// [MaxLength(20)] public string Tel { get; set; } /// /// 最后登录IP /// [MaxLength(20)] public string LastLoginIp { get; set; } /// /// 最后登录时间 /// public DateTime LastLoginTime { get; set; } /// /// 管理员类型-超级管理员_1、非管理员_2 /// public AdminType? AdminType { get; set; } /// /// 状态-正常_0、停用_1、删除_2 /// public CommonStatus Status { get; set; } = CommonStatus.ENABLE; }