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

This commit is contained in:
崔红保 2020-10-26 15:57:54 +08:00 committed by Gitee
parent 5136de5baa
commit 8063fd59bc

View File

@ -1,22 +1,27 @@
{ {
"schema": { "schema": {
"bsonType": "object", "bsonType": "object",
"required": ["name", "description", "create_date"], "required": ["name", "create_date"],
"properties": { "properties": {
"_id": { "_id": {
"description": "存储文档 ID文章 ID系统自动生成" "description": "存储文档 ID文章 ID系统自动生成"
}, },
"name": { "name": {
"bsonType": "string", "bsonType": "string",
"description": "类别名称" "description": "类别名称",
"title":"类别名称"
}, },
"description": { "description": {
"bsonType": "string", "bsonType": "string",
"description": "类别描述" "description": "类别描述",
"title":"类别描述"
}, },
"create_date": { "create_date": {
"bsonType": "timestamp", "bsonType": "timestamp",
"description": "创建时间" "description": "创建时间",
"defaultValue": {
"$env": "now"
}
} }
} }
}, },