平安校园
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PersonInfo.cs 3.3 KiB

3 meses atrás
3 meses atrás
3 meses atrás
3 meses atrás
3 meses atrás
3 meses atrás
3 meses atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. namespace SafeCampus.System;
  2. [SugarTable("PersonInfo", TableDescription = "人员信息表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class PersonInfo
  8. {
  9. /// <summary>
  10. /// 人员id
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "人员id", IsPrimaryKey = true)]
  13. public string PersonId { get; set; }
  14. /// <summary>
  15. /// 人员名称
  16. /// </summary>
  17. [SugarColumn(ColumnName = "Name", ColumnDescription = "人员名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  18. public string Name { get; set; }
  19. /// <summary>
  20. /// 年龄
  21. /// </summary>
  22. [SugarColumn(ColumnName = "Age", ColumnDescription = "年龄", IsNullable = false)]
  23. public int Age { get; set; }
  24. /// <summary>
  25. /// 性别
  26. /// </summary>
  27. [SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  28. public string Gender { get; set; }
  29. /// <summary>
  30. /// 手机号
  31. /// </summary>
  32. [SugarColumn(ColumnName = "Phone", ColumnDescription = "手机号", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  33. public string Phone { get; set; }
  34. /// <summary>
  35. /// 扩展属性
  36. /// </summary>
  37. [SugarColumn(ColumnName = "ExtData", ColumnDescription = "扩展属性", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  38. public string ExtData { get; set; }
  39. /// <summary>
  40. /// 人脸大小阈值
  41. /// </summary>
  42. [SugarColumn(ColumnName = "FaceSizeLimit", ColumnDescription = "人脸大小阈值",IsNullable = false)]
  43. public int FaceSizeLimit { get; set; }
  44. /// <summary>
  45. ///人脸质量分阈值
  46. /// </summary>
  47. [SugarColumn(ColumnName = "QualityScore", ColumnDescription = "人脸质量分阈值",IsNullable = false)]
  48. public float QualityScore { get; set; }
  49. /// <summary>
  50. /// 创建时间
  51. /// </summary>
  52. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
  53. public DateTime CreateTime { get; set; }
  54. /// <summary>
  55. /// 所属班级id
  56. /// </summary>
  57. [SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "所属班级id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  58. public string PersonSetId { get; set; }
  59. /// <summary>
  60. /// 所属寝室id
  61. /// </summary>
  62. [SugarColumn(ColumnName = "DormitoryId", ColumnDescription = "所属寝室id",IsNullable = true)]
  63. public long? DormitoryId { get; set; }
  64. /// <summary>
  65. /// 人脸列表
  66. /// </summary>
  67. [Navigate(NavigateType.OneToMany, nameof(PersonFaces.PersonId))]
  68. public List<PersonFaces> PersonFacesList { get; set; }
  69. /// <summary>
  70. /// 班级信息
  71. /// </summary>
  72. [Navigate(NavigateType.OneToOne, nameof(PersonSetInfo.PersonSetId),nameof(PersonSetId))]
  73. public PersonSetInfo PersonSetInfoItem { get; set; }
  74. /// <summary>
  75. /// 寝室信息
  76. /// </summary>
  77. [Navigate(NavigateType.OneToOne, nameof(DormitoryId))]
  78. public DormitoryInfo DormitoryInfoItem { get; set; }
  79. /// <summary>
  80. /// 考勤列表
  81. /// </summary>
  82. [Navigate(NavigateType.OneToMany, nameof(Attendance.PersonId))]
  83. public List<Attendance> Attendances { get; set; }
  84. }