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

namespace TEAMModelOS.SDK.Models
{
    /// <summary>
    /// Teaching materials 教学材料 ---课纲
    /// </summary>
    
    public class Syllabus : CosmosEntity
    {
        [Required(ErrorMessage = "{0} 必须填写")]
        public string code { get; set; }
        //[PartitionKey(name = "Syllabuses")]
        public string pk { get; set; }
        public int? ttl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
        public string id { get; set; }

        /// <summary>
        /// 册别编码
        /// </summary>
        [Required(ErrorMessage = "{0} 必须填写")]
      //  [PartitionKey]
      //  public string volumeCode { get; set; }

        public List<SyllabusNode> children { get; set; }
    }
}
