user.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "documentation": "A user info which is part of a team.",
  3. "fields": [
  4. {
  5. "documentation": "uid at user of this user.",
  6. "name": "uid",
  7. "type": "Integer",
  8. "nullable": false,
  9. "index": true
  10. },
  11. {
  12. "documentation": "user_name of this user.",
  13. "name": "user_name",
  14. "type": "String",
  15. "nullable": false,
  16. "index": true
  17. },
  18. {
  19. "documentation": "update time of this user.",
  20. "name": "update_time",
  21. "type": "Long",
  22. "nullable": false
  23. },
  24. {
  25. "documentation": "phone of this user.",
  26. "name": "phone",
  27. "type": "String",
  28. "nullable": true
  29. },
  30. {
  31. "documentation": "nickname of this user.",
  32. "name": "nickname",
  33. "type": "String",
  34. "nullable": true
  35. },
  36. {
  37. "documentation": "user_icon of this user.",
  38. "name": "user_icon",
  39. "type": "String",
  40. "nullable": true
  41. },
  42. {
  43. "documentation": "avatar of this user.",
  44. "name": "avatar",
  45. "type": "String",
  46. "nullable": true
  47. },
  48. {
  49. "documentation": "open_id of this user.",
  50. "name": "open_id",
  51. "type": "String",
  52. "nullable": true
  53. },
  54. {
  55. "documentation": "mail of this user.",
  56. "name": "mail",
  57. "type": "String",
  58. "nullable": true
  59. },
  60. {
  61. "documentation": "refresh_token of this user.",
  62. "name": "refresh_token",
  63. "type": "String",
  64. "nullable": true
  65. }
  66. ],
  67. "constraints": [
  68. {
  69. "name": "unique_user",
  70. "definition": "UNIQUE (user_name) ON CONFLICT REPLACE"
  71. }
  72. ],
  73. "defaultOrder": "user_name DESC"
  74. }