using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 监测成绩
///
[Comment("监测成绩")]
public class ExamScore : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
///
/// 监测计划ID
///
[Comment("监测计划ID")]
[Required]
public int ExamPlanId { get; set; }
///
/// 学段
///
[Comment("学段")]
[Required, Column(TypeName = "smallint")]
public EducationStage EducationStage { get; set; }
///
/// 监测抽样类型
///
[Comment("监测抽样类型")]
[Required, Column(TypeName = "smallint")]
public ExamSampleType ExamSampleType { get; set; }
///
/// 机构ID
///
[Comment("机构ID")]
[Required]
public short SysOrgId { get; set; }
///
/// 年级ID
///
[Comment("年级ID")]
[Required]
public short GradeId { get; set; }
///
/// 学期ID
///
[Comment("学期ID")]
[Required]
public short SemesterId { get; set; }
///
/// 班级ID
///
[Comment("班级ID")]
[Required]
public long SchoolClassId { get; set; }
///
/// 班号
///
[Comment("班号")]
[Required]
public short ClassNumber { get; set; }
///
/// 监测学生ID
///
[Comment("监测学生ID")]
[Required]
public long ExamStudentId { get; set; }
///
/// 高中选科组合ID
///
[Comment("高中选科组合ID")]
public short? SeniorCourseCombId { get; set; }
///
/// 科目ID
///
[Comment("科目ID")]
[Required]
public short CourseId { get; set; }
///
/// 成绩
///
[Comment("成绩")]
[Required, Column(TypeName = "decimal(10, 2)")]
public decimal Score { get; set; } = 0;
///
/// 是否排除
///
[Comment("是否排除")]
[Required]
public bool IsExcluded { get; set; } = false;
}