SysUser.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using ERP.Core.Enums;
  2. using ERP.Framework.Enum;
  3. using ERP.Framework.WebApi;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace ERP.Core.Entities
  6. {
  7. [Table("sys_user")]
  8. public class SysUser : BaseEntity
  9. {
  10. public override long Id { get => base.Id; set => base.Id = value; }
  11. /// <summary>
  12. /// 部门Id
  13. /// </summary>
  14. public virtual long DeptId { get; set; }
  15. /// <summary>
  16. /// 用户名
  17. /// </summary>
  18. public virtual string UserName { get; set; } = string.Empty;
  19. /// <summary>
  20. /// 昵称
  21. /// </summary>
  22. public virtual string NickName { get; set; } = string.Empty;
  23. /// <summary>
  24. /// 邮箱
  25. /// </summary>
  26. public virtual string? Email { get; set; }
  27. /// <summary>
  28. /// 电话号码
  29. /// </summary>
  30. public virtual string? PhoneNumber { get; set; }
  31. /// <summary>
  32. /// 性别
  33. /// </summary>
  34. public virtual SexEnum? Sex { get; set; }
  35. /// <summary>
  36. /// 头像
  37. /// </summary>
  38. public virtual string? Avatar { get; set; }
  39. /// <summary>
  40. /// 密码
  41. /// </summary>
  42. public virtual string Password { get; set; } = string.Empty;
  43. /// <summary>
  44. /// 用户状态
  45. /// </summary>
  46. public virtual StatusEnum UserStatus { get; set; }
  47. /// <summary>
  48. /// 数据状态 0正常 1已删除
  49. /// </summary>
  50. public virtual StatusEnum DataStatus { get; set; }
  51. }
  52. }