using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 高中总分上线
///
public class NceeLineTotal : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
///
/// 高中分析计划ID
///
[Comment("高中分析计划ID")]
[Required]
public int NceePlanId { get; set; }
///
/// 数据范围类型
///
[Comment("数据范围类型")]
[Required]
public NceeDataScopeType Type { get; set; }
///
/// 机构ID
///
[Comment("机构ID")]
public short? SysOrgId { get; set; }
///
/// 年级ID
///
[Comment("年级ID")]
[Required]
public short GradeId { get; set; }
///
/// 班级号
///
[Comment("班级号")]
public short? ClassNumber { get; set; }
///
/// 划线等级
///
[Comment("划线等级")]
[Required, Column(TypeName = "smallint")]
public NceeLineLevel NceeLineLevel { get; set; }
///
/// 首选科目ID
///
[Comment("首选科目ID")]
[Required]
public short DirectionCourseId { get; set; }
///
/// 选科组合ID
///
[Comment("选科组合ID")]
public short? NceeCourseCombId { get; set; }
///
/// 上线人数
///
[Comment("上线人数")]
[Required]
public int LineCount { get; set; } = 0;
///
/// 总人数
///
[Comment("总人数")]
[Required]
public int TotalCount { get; set; } = 0;
///
/// 上线比例
///
[Comment("上线比例")]
[Required, Column(TypeName = "decimal(10, 8)")]
public decimal LineRate { get; set; } = 0;
}