session.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "documentation": "A session info which is part of a team.",
  3. "fields": [
  4. {
  5. "documentation": "account of this session. For instance, John.",
  6. "name": "account",
  7. "type": "String",
  8. "nullable": false,
  9. "index": true
  10. },
  11. {
  12. "documentation": "open_id of this session. For instance, John.",
  13. "name": "open_id",
  14. "type": "String",
  15. "nullable": true,
  16. "index": true
  17. },
  18. {
  19. "documentation": "update time of this session.",
  20. "name": "update_time",
  21. "type": "Long",
  22. "nullable": false
  23. },
  24. {
  25. "documentation": "token of this session.",
  26. "name": "token",
  27. "type": "String",
  28. "nullable": true
  29. },
  30. {
  31. "documentation": "uid at user of this session.",
  32. "name": "uid",
  33. "type": "Integer",
  34. "nullable": true
  35. },
  36. {
  37. "documentation": "data hash save of this session.",
  38. "name": "hash",
  39. "type": "Integer",
  40. "nullable": true
  41. }
  42. ],
  43. "constraints": [
  44. {
  45. "name": "unique_session",
  46. "definition": "UNIQUE (account) ON CONFLICT REPLACE"
  47. }
  48. ],
  49. "defaultOrder": "account DESC"
  50. }