using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 特殊学生 /// [Comment("特殊学生")] public class SpecialStudent : DEntityBase { /// /// 机构ID /// [Comment("机构ID")] [Required] public short SysOrgId { get; set; } /// /// 校区ID /// [Comment("校区ID")] public short? SysOrgBranchId { get; set; } /// /// 班级ID /// [Comment("班级ID")] [Required] public long SchoolClassId { get; set; } /// /// 班级号 /// [Comment("班级号")] [Required] public int ClassNumber { get; set; } /// /// 姓名 /// [Comment("姓名")] [Required, StringLength(100)] public string Name { get; set; } /// /// 证件类型 /// [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(100)] public string StudentNumber { get; set; } = ""; /// /// 申请原因 /// [Comment("申请原因")] [Required, StringLength(2000)] public string ApplyReason { get; set; } /// /// 家长姓名 /// [Comment("家长姓名")] [StringLength(100)] public string PatriarchName { get; set; } /// /// 家长电话 /// [Comment("家长电话")] [StringLength(100)] public string PatriarchTel { get; set; } /// /// 认定人用户ID /// [Comment("认定人用户ID")] public int? IdentifiedSysUserId { get; set; } /// /// 认定时间 /// [Comment("认定时间")] public DateTime? IdentifiedTime { get; set; } /// /// 备注 /// [Comment("备注")] [StringLength(200)] public string Remark { get; set; } /// /// 一对一引用(机构) /// public virtual SysOrg SysOrg { get; set; } /// /// 一对一引用(班级) /// public virtual SchoolClass SchoolClass { get; set; } /// /// 一对一引用(校区) /// public virtual SysOrg SysOrgBranch { get; set; } }