平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

103 lines
4.8 KiB

  1. namespace SafeCampus.System;
  2. [SugarTable("ClassRoomCall", TableDescription = "点名数据")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. public class ClassRoomCall: PrimaryKeyEntity
  7. {
  8. /// <summary>
  9. /// 租户id
  10. /// </summary>
  11. [SugarColumn(ColumnName = "TenantCode", ColumnDescription = "租户id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  12. public string TenantCode { get; set; }
  13. /// <summary>
  14. /// 门店id
  15. /// </summary>
  16. [SugarColumn(ColumnName = "PoiId", ColumnDescription = "门店id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  17. public string PoiId { get; set; }
  18. /// <summary>
  19. /// 任务id
  20. /// </summary>
  21. [SugarColumn(ColumnName = "TaskId", ColumnDescription = "任务id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  22. public string TaskId { get; set; }
  23. /// <summary>
  24. /// 点名事件id
  25. /// </summary>
  26. [SugarColumn(ColumnName = "EventId", ColumnDescription = "点名事件id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  27. public string EventId { get; set; }
  28. /// <summary>
  29. /// 预警类型
  30. /// </summary>
  31. [SugarColumn(ColumnName = "AlarmType", ColumnDescription = "预警类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  32. public string AlarmType { get; set; }
  33. /// <summary>
  34. /// 预警类型说明
  35. /// </summary>
  36. [SugarColumn(ColumnName = "AlarmTypeDesc", ColumnDescription = "预警类型说明", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  37. public string AlarmTypeDesc { get; set; }
  38. /// <summary>
  39. /// 人员跟踪id
  40. /// </summary>
  41. [SugarColumn(ColumnName = "TrackId", ColumnDescription = "人员跟踪id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  42. public string TrackId { get; set; }
  43. /// <summary>
  44. /// 关联底库id 如果为空,表示该人员未匹配到底库
  45. /// </summary>
  46. [SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "关联底库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  47. public string PersonSetId { get; set; }
  48. /// <summary>
  49. /// 人员id
  50. /// </summary>
  51. [SugarColumn(ColumnName = "PersonId", ColumnDescription = "人员id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  52. public string PersonId { get; set; }
  53. /// <summary>
  54. /// 相似度
  55. /// </summary>
  56. [SugarColumn(ColumnName = "Similarity", ColumnDescription = "相似度", IsNullable = true)]
  57. public float Similarity { get; set; }
  58. /// <summary>
  59. /// 摄像头id
  60. /// </summary>
  61. [SugarColumn(ColumnName = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  62. public string CameraId { get; set; }
  63. /// <summary>
  64. /// 人脸质量分,取值[0, 100]
  65. /// </summary>
  66. [SugarColumn(ColumnName = "FaceScore", ColumnDescription = "人脸质量分", IsNullable = true)]
  67. public float FaceScore { get; set; }
  68. /// <summary>
  69. /// 人脸照片url,链接有效期为2小时
  70. /// </summary>
  71. [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "人脸照片url", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  72. public string SnapshotUrl { get; set; }
  73. /// <summary>
  74. /// 人脸照片数据,base64编码(本地对接使用)
  75. /// </summary>
  76. [SugarColumn(ColumnName = "SnapshotData", ColumnDescription = "人脸照片数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  77. public string SnapshotData { get; set; }
  78. /// <summary>
  79. /// 事件发生时间
  80. /// </summary>
  81. [SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
  82. public DateTime Tick { get; set; }
  83. /// <summary>
  84. /// 目标在快照中的位置
  85. /// </summary>
  86. [SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  87. public string Rects { get; set; }
  88. /// <summary>
  89. /// 人员扩展信息
  90. /// </summary>
  91. [SugarColumn(ColumnName = "Extend", ColumnDescription = "人员扩展信息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  92. public string Extend { get; set; }
  93. /// <summary>
  94. /// 创建时间
  95. /// </summary>
  96. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
  97. public DateTime CreateTime { get; set; }
  98. /// <summary>
  99. ///摄像头信息
  100. /// </summary>
  101. [Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
  102. public CameraInfo CameraInfoItem { get; set; }
  103. }