using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using YGNT.QuestionLibrary.Core.Disciplines;

namespace YGNT.QuestionLibrary.Core.Papers
{
    /// <summary>
    /// 试卷细分题型排序设置
    /// </summary>
    public class PaperDisciplineQtSortSetting : Entity
    {
        /// <summary>
        /// 学科id
        /// </summary>
        [Required]
        public int DisciplineId { get; set; }

        /// <summary>
        /// 学科下细分题型Id
        /// </summary>
        [Required]
        public int DisciplineQuestionTypeId { get; set; }

        /// <summary>
        /// 试卷id
        /// </summary>
        [Required]
        public int PaperId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Sort { get; set; }

        /// <summary>
        /// 学科
        /// </summary>
        public Discipline Discipline { get; set; }

        /// <summary>
        /// 学科下细分题型Id
        /// </summary>
        public DisciplineQuestionType DisciplineQuestionType { get; set; }
    }
}