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

namespace YGNT.QuestionLibrary.Core.Disciplines
{
    /// <summary>
    /// 学科下细分题型
    /// </summary>
    public class DisciplineQuestionType : Entity
    {
        /// <summary>
        /// 细分题型名称
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 系统试题类型Id
        /// </summary>
        [Required]
        public int QuestionTypeId { get; set; }

        /// <summary>
        /// 学科Id
        /// </summary>
        [Required]
        public int DisciplineId { get; set; }


        /// <summary>
        /// 学科
        /// </summary>
        [ForeignKey(nameof(DisciplineId))]
        public Discipline Discipline { get; set; }

        /// <summary>
        /// 试题类型
        /// </summary>
        [ForeignKey(nameof(QuestionTypeId))]
        public QuestionType QuestionType { get; set; }

    }
}