using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 高中成绩
///
public class NceeScore : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public long Id { get; set; }
///
/// 高中分析计划ID
///
[Comment("高中分析计划ID")]
[Required]
public int NceePlanId { get; set; }
///
/// 高中学生ID
///
[Comment("高中学生ID")]
[Required]
public long NceeStudentId { 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, Column(TypeName = "decimal(10, 2)")]
public decimal ScoreX { get; set; } = 0;
///
/// 转换等级ID
///
[Comment("转换等级ID")]
public short? NceeConvertGradeId { get; set; }
///
/// 转换等级名称
///
[Comment("转换等级名称")]
public string NceeConvertGradeName { get; set; }
///
/// 一对一引用(高中学生)
///
public virtual NceeStudent NceeStudent { get; set; }
}