using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YBEE.EQM.Core;
///
/// 成绩分段配置
///
public class ExamScoreRange : IEntity
{
///
/// 主键
///
[Comment("主键")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
///
/// 序
///
[Comment("序")]
[Required]
public int Sequence { get; set; }
///
/// 类型
///
[Comment("类型")]
[Required]
public ExamScoreRangeType Type { get; set; }
///
/// 名称
///
[Comment("名称")]
[Required, StringLength(100)]
public string Name { get; set; }
///
/// 别称
///
[Comment("别称")]
[Required, StringLength(100)]
public string NickName { get; set; }
///
/// 开始值
///
[Comment("开始值")]
[Required, Column(TypeName = "decimal(16, 8)")]
public decimal BeginValue { get; set; }
///
/// 包含开始值
///
[Comment("包含开始值")]
[Required]
public bool BeginInclude { get; set; }
///
/// 结束值
///
[Comment("结束值")]
[Required, Column(TypeName = "decimal(16, 8)")]
public decimal EndValue { get; set; }
///
/// 包含结束值
///
[Comment("包含结束值")]
[Required]
public bool EndInclude { get; set; }
///
/// 备注
///
[Comment("备注")]
[StringLength(200)]
public string Remark { get; set; }
}