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

65 lines
1.5 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": ["name"],
2021-03-08 21:15:53 +08:00
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
},
"parent_id": {
"bsonType": "string",
"description": "父ID用于多级分类"
},
"name": {
"bsonType": "string",
"description": "类别名称",
2021-03-08 21:15:53 +08:00
"title": "类别名称",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "类别图标/图片地址",
2021-03-08 21:15:53 +08:00
"title": "图标地址",
2020-12-23 20:20:34 +08:00
"pattern": "^(http://|https://|/|./|@/)\\S",
2021-03-08 21:15:53 +08:00
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "类别排序,越大越靠后",
2021-03-08 21:15:53 +08:00
"title": "排序"
},
"description": {
"bsonType": "string",
"description": "类别描述",
2021-03-08 21:15:53 +08:00
"title": "类别描述",
"trim": "both"
},
2021-03-08 21:15:53 +08:00
"is_hot_show": {
"bsonType": "bool",
"title": "加入热门显示",
"description": "是否热门显示"
},
2021-03-08 21:15:53 +08:00
"is_index_show": {
"bsonType": "bool",
"title": "首页显示",
"description": "是否首页显示"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"defaultValue": {
"$env": "now"
}
}
}
},
"data": [],
"index": []
}