update collection/opendb-news-categories/collection.json.

This commit is contained in:
崔红保 2020-10-26 15:37:29 +08:00 committed by Gitee
parent 7364ec5ca9
commit 047685376c

View File

@ -1,26 +1,31 @@
{ {
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": ["name", "description", "icon"], "required": ["name"],
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID文章 ID系统自动生成" "description": "存储文档 ID文章 ID系统自动生成"
}, },
"name": { "name": {
"bsonType": "string", "bsonType": "string",
"description": "类别名称" "description": "类别名称",
"label": "名称"
}, },
"description": { "description": {
"bsonType": "string", "bsonType": "string",
"description": "类别描述" "description": "类别描述",
"label": "描述"
}, },
"icon": { "icon": {
"bsonType": "string", "bsonType": "string",
"description": "类别图标地址" "description": "类别图标地址",
"label": "图标地址",
"pattern": "^(http://|https://|/|./|@/)\\S"
}, },
"sort": { "sort": {
"bsonType": "int", "bsonType": "int",
"description": "类别显示顺序" "description": "类别显示顺序",
"label": "排序"
}, },
"article_count": { "article_count": {
"bsonType": "int", "bsonType": "int",