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