namespace SafeCampus.System;
[SugarTable("WarnInfo", TableDescription = "预警信息表")]
[Tenant(SqlSugarConst.DB_DEFAULT)]
[BatchEdit]
[CodeGen]
[IgnoreInitTable]
public class WarnInfo : BaseEntity
{
///
/// 租户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 = "AlarmId", ColumnDescription = "预警id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string AlarmId { 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 = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string CameraId { get; set; }
///
/// 事件发生时间
///
[SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
public DateTime Tick { get; set; }
///
/// 摄像头快照,原链接有效期为2小时,获取到数据后下载到本地
///
[SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "摄像头快照", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string SnapshotUrl { get; set; }
///
/// 预警关联视频(有些报警有,有些没有)
///
[SugarColumn(ColumnName = "VideoUrl", ColumnDescription = "预警关联视频", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string VideoUrl { get; set; }
///
/// 目标在快照中的位置
///
[SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Rects { get; set; }
/////
///// 人员名称
/////
//[SugarColumn(ColumnName = "PersonName", ColumnDescription = "人员名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
//public string PersonName { get; set; }
///
/// 性别
///
[SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Gender { 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 = "FaceSimilarity", ColumnDescription = "人脸相似度", IsNullable = true)]
public float? FaceSimilarity { get; set; }
///
/// 人员跟踪id,同一个id表示是同一个人
///
[SugarColumn(ColumnName = "TrackId", ColumnDescription = "人员跟踪id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string TrackId { get; set; }
///
/// 服装库id
///
[SugarColumn(ColumnName = "ClothsSetId", ColumnDescription = "服装库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string ClothsSetId { get; set; }
///
/// 服装id
///
[SugarColumn(ColumnName = "ClothId", ColumnDescription = "服装id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string ClothId { get; set; }
///
/// 服装相似度
///
[SugarColumn(ColumnName = "ClothSimilarity", ColumnDescription = "服装相似度", IsNullable = true)]
public float? ClothSimilarity { get; set; }
///
/// 奔跑速度
///
[SugarColumn(ColumnName = "SpeedLevel", ColumnDescription = "奔跑速度", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string SpeedLevel { get; set; }
///
/// 奔跑时周围人数
///
[SugarColumn(ColumnName = "MaxAroundTracks", ColumnDescription = "奔跑时周围人数", IsNullable = true)]
public int? MaxAroundTracks { get; set; }
///
/// 人群数量
///
[SugarColumn(ColumnName = "Count", ColumnDescription = "人群数量", IsNullable = true)]
public int? Count { get; set; }
///
/// 持续时长
///
[SugarColumn(ColumnName = "Duration", ColumnDescription = "持续时长", IsNullable = true)]
public int? Duration { get; set; }
///
/// 人员类型
///
[SugarColumn(ColumnName = "PersonType", ColumnDescription = "人员类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PersonType { get; set; }
///
///场景标签
///
[SugarColumn(ColumnName = "Tags", ColumnDescription = "场景标签", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Tags { get; set; }
///
/// 额外数据,每个预警类型不同
///
[SugarColumn(ColumnName = "Extend",ColumnDescription = "额外数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Extend { get; set; }
///
/// 预警处理状态
///
[SugarColumn(ColumnName = "WarnHand", ColumnDescription = "预警处理状态", IsNullable = true)]
public int WarnHand { get; set; }
///
/// 处理意见
///
[SugarColumn(ColumnName = "Remark", ColumnDescription = "处理意见", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string Remark { get; set; }
///
/// 处理时间
///
[SugarColumn(ColumnName = "HandTime", ColumnDescription = "处理时间", IsNullable = true)]
public DateTime? HandTime { get; set; }
///
///摄像头信息
///
[Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
public CameraInfo CameraInfoItem { get; set; }
///
/// 班级信息
///
[Navigate(NavigateType.OneToOne,nameof(PersonSetId),nameof(PersonSetInfo.PersonSetId))]
public PersonSetInfo PersonSetInfoItem { get; set; }
///
/// 人员信息
///
[Navigate(NavigateType.OneToOne,nameof(PersonId),nameof(PersonInfo.PersonId))]
public PersonInfo PersonInfoItem { get; set; }
}