qiun-charts-demo.schema.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
  2. {
  3. "bsonType": "object",
  4. "required": [],
  5. "permission": {
  6. "read": true,
  7. "create": true,
  8. "update": true,
  9. "delete": true
  10. },
  11. "properties": {
  12. "_id": {
  13. "description": "ID,系统自动生成"
  14. },
  15. "nickname": {
  16. "bsonType": "string",
  17. "title": "昵称",
  18. "description": "用户昵称"
  19. },
  20. "gender": {
  21. "bsonType": "int",
  22. "title": "性别",
  23. "description": "用户性别:0 未知 1 男性 2 女性",
  24. "defaultValue": 0,
  25. "enum": [
  26. {
  27. "text": "未知",
  28. "value": 0
  29. },
  30. {
  31. "text": "男",
  32. "value": 1
  33. },
  34. {
  35. "text": "女",
  36. "value": 2
  37. }
  38. ]
  39. },
  40. "status": {
  41. "bsonType": "int",
  42. "description": "用户状态:0 正常 1 禁用 2 审核中 3 审核拒绝",
  43. "title": "用户状态",
  44. "defaultValue": 0,
  45. "enum": [
  46. {
  47. "text": "正常",
  48. "value": 0
  49. },
  50. {
  51. "text": "禁用",
  52. "value": 1
  53. },
  54. {
  55. "text": "审核中",
  56. "value": 2
  57. },
  58. {
  59. "text": "审核拒绝",
  60. "value": 3
  61. }
  62. ]
  63. },
  64. "register_date": {
  65. "bsonType": "timestamp",
  66. "description": "注册时间",
  67. "forceDefaultValue": {
  68. "$env": "now"
  69. }
  70. },
  71. "total_fee": {
  72. "bsonType": "int",
  73. "description": "订单总金额,单位:分。"
  74. }
  75. }
  76. }