Person.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 人员
  8. /// </summary>
  9. [Comment("人员")]
  10. [Table("base_person")]
  11. public partial class Person : DEntityBase
  12. {
  13. /// <summary>
  14. /// 姓名
  15. /// </summary>
  16. [Comment("姓名")]
  17. [Required, StringLength(100)]
  18. public string Name { get; set; }
  19. /// <summary>
  20. /// 曾用名
  21. /// </summary>
  22. [Comment("曾用名")]
  23. [StringLength(100)]
  24. public string FormerName { get; set; }
  25. /// <summary>
  26. /// 证件类型
  27. /// </summary>
  28. [Comment("证件类型")]
  29. [Required, Column(TypeName = "smallint")]
  30. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  31. /// <summary>
  32. /// 证件号码
  33. /// </summary>
  34. [Comment("证件号码")]
  35. [StringLength(50)]
  36. public string IdNumber { get; set; } = "";
  37. /// <summary>
  38. /// 出生日期
  39. /// </summary>
  40. [Comment("出生日期")]
  41. public DateTime? BirthDate { get; set; }
  42. /// <summary>
  43. /// 性别
  44. /// </summary>
  45. [Comment("性别")]
  46. [Required, Column(TypeName = "smallint")]
  47. public Gender Gender { get; set; } = Gender.UNKNOWN;
  48. /// <summary>
  49. /// 手机号码
  50. /// </summary>
  51. [Comment("手机号码")]
  52. [StringLength(50)]
  53. public string Mobile { get; set; } = "";
  54. /// <summary>
  55. /// 电子邮箱
  56. /// </summary>
  57. [Comment("电子邮箱")]
  58. [StringLength(200)]
  59. public string Email { get; set; } = "";
  60. /// <summary>
  61. /// 备注
  62. /// </summary>
  63. [Comment("备注")]
  64. [StringLength(200)]
  65. public string Remark { get; set; } = "";
  66. }