using System;
using System.Collections.Generic;
using System.Text;
using TEAMModelOS.SDK.Context.Attributes.Azure;
using System.Text.Json.Serialization;
using System.ComponentModel.DataAnnotations;

namespace TEAMModelOS.Service.Models.Syllabus
{
    public class Volume
    { 
        /// <summary>
        /// id生成规则
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 0默认教学课纲的册别 1个人或单独的专题课纲册别
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// Type 如果为0 则是学校编码  如果为1 则是seminar 专题/研讨/培训
        /// </summary>
        [PartitionKey]
        [Required(ErrorMessage = "{0} 必须填写")]
        public string schoolCode { get; set; }
        public string periodCode { get; set; }
        public string subjectCode { get; set; }
        public string gradeCode { get; set; }
        public string semesterCode { get; set; }
        public int status { get; set; } = 1;
        [Required(ErrorMessage = "{0} 必须填写")]
        public string volumeName { get; set; }
        public string volumeCode { get; set; }
        [JsonPropertyName("TEAMModelId")]
        public string TEAMModelId { get; set; }
        public string[] editors { get; set; }
    }
}
