using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;
using YGNT.QuestionLibrary.Core.BaseData.Enum;
using YGNT.QuestionLibrary.Core.Disciplines;

namespace YGNT.QuestionLibrary.Core.BaseData
{
    /// <summary>
    /// 系统级试题类型
    /// </summary>
    public class QuestionType : Entity
    {
        public QuestionType()
        {
            QuestionCategory = default;
        }

        /// <summary>
        /// 试题类型名称
        /// </summary>
        [Required]
        public string Name { get; set; }


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

        /// <summary>
        /// 题型类别
        /// </summary>
        public QuestionCategory QuestionCategory { get; set; }

        /// <summary>
        /// 是否为固定类型
        /// </summary>
        public bool IsStruct { get; set; }

        public List<DisciplineQuestionType> DisciplineQuestionTypes { get; set; }

    }
}