namespace SafeCampus.System;
[SugarTable("ClassRoomCall", TableDescription = "点名数据")]
[Tenant(SqlSugarConst.DB_DEFAULT)]
[BatchEdit]
[CodeGen]
public class ClassRoomCall: PrimaryKeyEntity
{
///
/// 租户id
///
[SugarColumn(ColumnName = "TenantCode", ColumnDescription = "租户id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string TenantCode { get; set; }
///
/// 门店id
///
[SugarColumn(ColumnName = "PoiId", ColumnDescription = "门店id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PoiId { get; set; }
///
/// 任务id
///
[SugarColumn(ColumnName = "TaskId", ColumnDescription = "任务id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string TaskId { get; set; }
///
/// 点名事件id
///
[SugarColumn(ColumnName = "EventId", ColumnDescription = "点名事件id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string EventId { get; set; }
///
/// 预警类型
///
[SugarColumn(ColumnName = "AlarmType", ColumnDescription = "预警类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string AlarmType { get; set; }
///
/// 预警类型说明
///
[SugarColumn(ColumnName = "AlarmTypeDesc", ColumnDescription = "预警类型说明", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string AlarmTypeDesc { get; set; }
///
/// 人员跟踪id
///
[SugarColumn(ColumnName = "TrackId", ColumnDescription = "人员跟踪id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string TrackId { get; set; }
///
/// 关联底库id 如果为空,表示该人员未匹配到底库
///
[SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "关联底库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PersonSetId { get; set; }
///
/// 人员id
///
[SugarColumn(ColumnName = "PersonId", ColumnDescription = "人员id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PersonId { get; set; }
///
/// 相似度
///
[SugarColumn(ColumnName = "Similarity", ColumnDescription = "相似度", IsNullable = true)]
public float Similarity { get; set; }
///
/// 摄像头id
///
[SugarColumn(ColumnName = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string CameraId { get; set; }
///
/// 人脸质量分,取值[0, 100]
///
[SugarColumn(ColumnName = "FaceScore", ColumnDescription = "人脸质量分", IsNullable = true)]
public float FaceScore { get; set; }
///
/// 人脸照片url,链接有效期为2小时
///
[SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "人脸照片url", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string SnapshotUrl { get; set; }
///
/// 人脸照片数据,base64编码(本地对接使用)
///
[SugarColumn(ColumnName = "SnapshotData", ColumnDescription = "人脸照片数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string SnapshotData { get; set; }
///
/// 事件发生时间
///
[SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
public DateTime Tick { get; set; }
///
/// 目标在快照中的位置
///
[SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Rects { get; set; }
///
/// 人员扩展信息
///
[SugarColumn(ColumnName = "Extend", ColumnDescription = "人员扩展信息", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Extend { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
public DateTime CreateTime { get; set; }
///
///摄像头信息
///
[Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
public CameraInfo CameraInfoItem { get; set; }
}