平安校园
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
3 месяцев назад
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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", ColumnDataType = StaticConfig.CodeFirst_BigString, 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. }