using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using TEAMModelOS.SDK.Context.Attributes.Azure;
using TEAMModelOS.SDK.DI;
using TEAMModelOS.Models;
namespace TEAMModelOS.Models.SchoolInfo
{
///
/// 课程
///
[CosmosDB(Database = "TEAMModelOS", Name = "School")]
public class CourseManagement : ID
{
public CourseManagement()
{
courses = new List();
teacher = new Teachers();
}
///
/// 班级id
///
public string id { get; set; }
public int? ttl { get; set; }
public string pk { get; set; }
[PartitionKey]
public string code { get; set; }
public string name { get; set; }
public List courses { get; set; }
public Teachers teacher { get; set; }
public string scope { get; set; }
}
public class CourseSimple {
public CourseSimple() {
course = new Courses();
teachers = new List();
}
public Courses course { get; set; }
public List teachers { get; set; }
}
public class Courses {
public string id { get; set; }
public string name { get; set; }
public string scope { get; set; }
public string notice { get; set; }
}
}