namespace SafeCampus.System;
[SugarTable("PersonInfo", TableDescription = "人员信息表")]
[Tenant(SqlSugarConst.DB_DEFAULT)]
[BatchEdit]
[CodeGen]
[IgnoreInitTable]
public class PersonInfo
{
///
/// 人员id
///
[SugarColumn(ColumnDescription = "人员id", IsPrimaryKey = true)]
public string PersonId { get; set; }
///
/// 人员名称
///
[SugarColumn(ColumnName = "Name", ColumnDescription = "人员名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
public string Name { get; set; }
///
/// 年龄
///
[SugarColumn(ColumnName = "Age", ColumnDescription = "年龄", IsNullable = false)]
public int Age { get; set; }
///
/// 性别
///
[SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
public string Gender { get; set; }
///
/// 手机号
///
[SugarColumn(ColumnName = "Phone", ColumnDescription = "手机号", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
public string Phone { get; set; }
///
/// 扩展属性
///
[SugarColumn(ColumnName = "ExtData", ColumnDescription = "扩展属性", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string ExtData { get; set; }
///
/// 人脸大小阈值
///
[SugarColumn(ColumnName = "FaceSizeLimit", ColumnDescription = "人脸大小阈值",IsNullable = false)]
public int FaceSizeLimit { get; set; }
///
///人脸质量分阈值
///
[SugarColumn(ColumnName = "QualityScore", ColumnDescription = "人脸质量分阈值",IsNullable = false)]
public float QualityScore { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsNullable = true, IsOnlyIgnoreUpdate = true)]
public DateTime CreateTime { get; set; }
///
/// 所属班级id
///
[SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "所属班级id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
public string PersonSetId { get; set; }
///
/// 所属寝室id
///
[SugarColumn(ColumnName = "DormitoryId", ColumnDescription = "所属寝室id",IsNullable = true)]
public long? DormitoryId { get; set; }
///
/// 人脸列表
///
[Navigate(NavigateType.OneToMany, nameof(PersonFaces.PersonId))]
public List PersonFacesList { get; set; }
///
/// 班级信息
///
[Navigate(NavigateType.OneToOne, nameof(PersonSetInfo.PersonSetId),nameof(PersonSetId))]
public PersonSetInfo PersonSetInfoItem { get; set; }
///
/// 寝室信息
///
[Navigate(NavigateType.OneToOne, nameof(DormitoryId))]
public DormitoryInfo DormitoryInfoItem { get; set; }
///
/// 考勤列表
///
[Navigate(NavigateType.OneToMany, nameof(Attendance.PersonId))]
public List Attendances { get; set; }
}