using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System;
namespace YBEE.EQM.Core;
///
/// 监测教师
///
[Comment("监测教师")]
public class ExamTeacher : DEntityBase
{
///
/// 监测计划ID
///
[Comment("监测计划ID")]
[Required]
public int ExamPlanId { get; set; }
///
/// 机构ID
///
[Comment("机构ID")]
[Required]
public short SysOrgId { get; set; }
///
/// 姓名
///
[Comment("姓名")]
[Required, StringLength(100)]
public string Name { get; set; }
///
/// 学校职位ID
///
[Comment("学校职位ID")]
[Required, Column(TypeName = "smallint")]
public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
///
/// 证件类型
///
[Comment("证件类型")]
[Required, Column(TypeName = "smallint")]
public CertificateType CertificateType { get; set; } = CertificateType.NONE;
///
/// 证件号码
///
[Comment("证件号码")]
[StringLength(50)]
public string IdNumber { get; set; } = "";
///
/// 出生日期
///
[Comment("出生日期")]
public DateTime? BirthDate { get; set; }
///
/// 性别
///
[Comment("性别")]
[Required, Column(TypeName = "smallint")]
public Gender Gender { get; set; } = Gender.UNKNOWN;
///
/// 手机号码
///
[Comment("手机号码")]
[StringLength(50)]
public string Mobile { get; set; } = "";
///
/// 电子邮箱
///
[Comment("电子邮箱")]
[StringLength(200)]
public string Email { get; set; } = "";
///
/// 备注
///
[Comment("备注")]
[StringLength(200)]
public string Remark { get; set; }
///
/// 一对一引用(机构)
///
public virtual SysOrg SysOrg { get; set; }
}