School.cs 780 B

123456789101112131415161718192021222324252627
  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 int? ttl { get; set; } = -1;
  12. public School()
  13. {
  14. period = new List<Period>();
  15. }
  16. [JsonProperty(PropertyName = "id")]
  17. public string id { get; set; }
  18. public string schoolCode { get; set; }
  19. [PartitionKey]
  20. public string areaCode { get; set; }
  21. public string schoolName { get; set; }
  22. public List<Period> period { get; set; }
  23. public List<Campus> campuses { get; set; }
  24. }
  25. }