opendb/collection/opendb-mall-categories/collection.json

52 lines
1.2 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": ["name"],
2020-10-27 18:21:58 +08:00
"permission": {
2020-10-28 20:21:38 +08:00
"read": true,
"create": false,
"update": false,
"delete": false
2020-10-27 18:21:58 +08:00
},
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
},
"parent_id": {
"bsonType": "string",
"description": "父ID用于多级分类"
},
"name": {
"bsonType": "string",
"description": "类别名称",
"title":"类别名称"
},
"icon": {
"bsonType": "string",
"description": "类别图标/图片地址",
"title":"图标地址",
"pattern": "^(http://|https://|/|./|@/)\\S"
},
"sort": {
"bsonType": "int",
"description": "类别排序,越大越靠后",
"title":"排序"
},
"description": {
"bsonType": "string",
"description": "类别描述",
"title":"类别描述"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"defaultValue": {
"$env": "now"
}
}
}
},
"data": [],
"index": []
}