namespace SafeCampus.System;
[SugarTable("ClassRoomCallTask", TableDescription = "点名任务")]
[Tenant(SqlSugarConst.DB_DEFAULT)]
[BatchEdit]
[CodeGen]
[IgnoreInitTable]
public class ClassRoomCallTask: PrimaryKeyEntity
{
///
/// 摄像头id
///
[SugarColumn(ColumnName = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string CameraId { get; set; }
///
/// 点名任务id
///
[SugarColumn(ColumnName = "TaskId", ColumnDescription = "点名任务id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string TaskId { get; set; }
///
/// 点名持续时间,单位为分钟,取值[1, 100]
///
[SugarColumn(ColumnName = "ContinueTime", ColumnDescription = "点名持续时间", IsNullable = true)]
public int ContinueTime { get; set; }
///
/// 人员底库id
///
[SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "人员底库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PersonSetId { get; set; }
///
/// 匹配相似度阈值(如果没传,系统默认用0.5)
///
[SugarColumn(ColumnName = "Similarity", ColumnDescription = "匹配相似度阈值", IsNullable = true)]
public float Similarity { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
public DateTime CreateTime { get; set; }
///
/// 结束时间
///
[SugarColumn(ColumnName = "EndTime", ColumnDescription = "结束时间",IsNullable = true)]
public DateTime EndTime { get; set; }
///
/// 摄像头信息
///
[Navigate(NavigateType.OneToOne, nameof(CameraId),nameof(CameraInfo.SensorId)),]
public CameraInfo CameraInfoItem { get; set; }
///
/// 班级信息
///
[Navigate(NavigateType.OneToOne, nameof(PersonSetInfo.PersonSetId), nameof(PersonSetId))]
public PersonSetInfo PersonSetInfoItem { get; set; }
}