unicloud-db-test.schema.json 805 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "bsonType": "object",
  3. "permission": {
  4. "read": true,
  5. "create": true,
  6. "update": true,
  7. "delete": true
  8. },
  9. "required": ["title", "comment"],
  10. "properties": {
  11. "_id": {
  12. "description": "存储文档 ID(用户 ID),系统自动生成"
  13. },
  14. "title": {
  15. "bsonType": "string",
  16. "title": "姓名",
  17. "description": "姓名",
  18. "order": 1,
  19. "trim": "both"
  20. },
  21. "comment": {
  22. "bsonType": "string",
  23. "title": "备注",
  24. "order": 5,
  25. "description": "备注",
  26. "trim": "both",
  27. "component": {
  28. "name": "textarea"
  29. }
  30. },
  31. "create_date": {
  32. "bsonType": "timestamp",
  33. "description": "创建时间",
  34. "forceDefaultValue": {
  35. "$env": "now"
  36. }
  37. }
  38. },
  39. "version": "0.0.1"
  40. }