namespace SafeCampus.System; [SugarTable("Attendance", TableDescription = "无感考勤")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] [IgnoreInitTable] public class Attendance : 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 = "EventId", ColumnDescription = "考勤事件id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string EventId { 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 = "IsAuto", ColumnDescription = "是否自动上报", IsNullable = true)] public bool IsAuto { 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 = "InsOut", ColumnDescription = "目标是进来还是出去", IsNullable = true)] public bool InsOut { 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; } /// /// 人员信息 /// [Navigate(NavigateType.OneToOne, nameof(PersonId))] public PersonInfo PersonInfoItem { get; set; } }