School.cs 736 B

1234567891011121314151617181920212223242526
  1. using Newtonsoft.Json;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using TEAMModelOS.SDK.Context.Attributes.Azure;
  5. using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
  6. namespace TEAMModelOS.Service.Models.Core
  7. {
  8. [CosmosDB(RU = 400, Name = "CoreSchool")]
  9. public class School:ID
  10. {
  11. public School()
  12. {
  13. period = new List<Period>();
  14. }
  15. [JsonProperty(PropertyName = "id")]
  16. public string id { get; set; }
  17. public string schoolCode { get; set; }
  18. [PartitionKey]
  19. public string areaCode { get; set; }
  20. public string schoolName { get; set; }
  21. public List<Period> period { get; set; }
  22. public List<Campus> campuses { get; set; }
  23. }
  24. }