opendb/collection/uni-cms-categories/collection.json

78 lines
1.8 KiB
JSON
Raw Normal View History

2023-03-30 17:36:31 +08:00
{
"schema": {
"bsonType": "object",
"required": [
"name"
],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
2023-03-30 17:36:31 +08:00
},
"properties": {
"_id": {
"description": "存储文档 ID文章 ID系统自动生成"
},
"name": {
"bsonType": "string",
"description": "类别名称",
"label": "名称",
"trim": "both"
},
"description": {
"bsonType": "string",
"description": "类别描述",
"label": "描述",
"trim": "both"
},
"icon": {
"bsonType": "string",
"description": "类别图标地址",
"label": "图标地址",
"pattern": "^(http://|https://|/|./|@/)\\S",
"trim": "both"
},
"sort": {
"bsonType": "int",
"description": "类别显示顺序",
"label": "排序",
"defaultValue": 0
2023-03-30 17:36:31 +08:00
},
"article_count": {
"bsonType": "int",
"description": "该类别下文章数量"
},
"image_count": {
"bsonType": "int",
"description": "该类别下图片数量"
},
"video_count": {
"bsonType": "int",
"description": "该类别下视频数量"
},
"type": {
"bsonType": "string",
"title": "内容类型",
"description": "内容类型article 文章 image 图片 video 视频",
"label": "内容id",
"trim": "both",
"enum": [
"article",
"image",
"video"
]
},
2023-03-30 17:36:31 +08:00
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"data": [],
"index": []
}