SchoolUser.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using TEAMModelOS.SDK.Context.Attributes.Azure;
  8. using TEAMModelOS.SDK.Module.AzureCosmosDBV3;
  9. namespace TEAMModelOS.Service.Models.Core
  10. {
  11. [CosmosDB(RU = 400, Name = "School")]
  12. public class SchoolUser:ID
  13. {
  14. public string id { get; set; }
  15. public string schoolCode { get; set; }
  16. public string schoolName { get; set; }
  17. public string name { get; set; }
  18. public string email { get; set; }
  19. public string mobile { get; set; }
  20. public string country { get; set; }
  21. public string jobTitle { get; set; }
  22. public string picture { get; set; }
  23. public List<string> role { get; set; }
  24. public List<string> authority { get; set; }
  25. public int joinStatus { get; set; } = 0;
  26. public bool loginFlg { get; set; }
  27. public long lastLoginDate { get; set; } = 0;
  28. public long crtDate { get; set; } = 0;
  29. public long remindDate { get; set; } = 0;
  30. public long joinDate { get; set; } = 0;
  31. [PartitionKey]
  32. public string code { get; set; }
  33. public int? ttl { get; set ; }
  34. }
  35. }