using ProtoBuf;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using TEAMModelOS.SDK.Context.Attributes.Azure;
using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
namespace TEAMModelOS.Service.Models.Core
{
[ProtoContract]
[CosmosDB(RU = 400, Name = "CoreClassroomStudent",Cache = true)]
public class ClassroomStudent:ID
{
///
/// classroomCode
///
[ProtoMember(1)]
[Required(ErrorMessage = "{0} 必须填写")]
public string id { get; set; } //classroomCode
[ProtoMember(2)]
[Required(ErrorMessage = "{0} 必须填写")]
[PartitionKey]
public string scopeCode { get; set; }
[ProtoMember(3)]
public HashSet studentId { get; set; }
//public class Stu
//{
// public string studentId { get; set; }
// ///
// /// 座位
// ///
// public int seatNo { get; set; }
//}
}
}