ExamTeacher.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. using System;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 监测教师
  8. /// </summary>
  9. [Comment("监测教师")]
  10. public class ExamTeacher : DEntityBase
  11. {
  12. /// <summary>
  13. /// 监测计划ID
  14. /// </summary>
  15. [Comment("监测计划ID")]
  16. [Required]
  17. public int ExamPlanId { get; set; }
  18. /// <summary>
  19. /// 机构ID
  20. /// </summary>
  21. [Comment("机构ID")]
  22. [Required]
  23. public short SysOrgId { get; set; }
  24. /// <summary>
  25. /// 姓名
  26. /// </summary>
  27. [Comment("姓名")]
  28. [Required, StringLength(100)]
  29. public string Name { get; set; }
  30. /// <summary>
  31. /// 学校职位ID
  32. /// </summary>
  33. [Comment("学校职位ID")]
  34. [Required, Column(TypeName = "smallint")]
  35. public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
  36. /// <summary>
  37. /// 证件类型
  38. /// </summary>
  39. [Comment("证件类型")]
  40. [Required, Column(TypeName = "smallint")]
  41. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  42. /// <summary>
  43. /// 证件号码
  44. /// </summary>
  45. [Comment("证件号码")]
  46. [StringLength(50)]
  47. public string IdNumber { get; set; } = "";
  48. /// <summary>
  49. /// 出生日期
  50. /// </summary>
  51. [Comment("出生日期")]
  52. public DateTime? BirthDate { get; set; }
  53. /// <summary>
  54. /// 性别
  55. /// </summary>
  56. [Comment("性别")]
  57. [Required, Column(TypeName = "smallint")]
  58. public Gender Gender { get; set; } = Gender.UNKNOWN;
  59. /// <summary>
  60. /// 手机号码
  61. /// </summary>
  62. [Comment("手机号码")]
  63. [StringLength(50)]
  64. public string Mobile { get; set; } = "";
  65. /// <summary>
  66. /// 电子邮箱
  67. /// </summary>
  68. [Comment("电子邮箱")]
  69. [StringLength(200)]
  70. public string Email { get; set; } = "";
  71. /// <summary>
  72. /// 备注
  73. /// </summary>
  74. [Comment("备注")]
  75. [StringLength(200)]
  76. public string Remark { get; set; }
  77. /// <summary>
  78. /// 一对一引用(机构)
  79. /// </summary>
  80. public virtual SysOrg SysOrg { get; set; }
  81. }