From 8063fd59bc92fff4fce4e22b77ebc7e67f496da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Mon, 26 Oct 2020 15:57:54 +0800 Subject: [PATCH] update collection/opendb-mall-categories/collection.json. --- collection/opendb-mall-categories/collection.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/collection/opendb-mall-categories/collection.json b/collection/opendb-mall-categories/collection.json index 9077392..c7967b1 100644 --- a/collection/opendb-mall-categories/collection.json +++ b/collection/opendb-mall-categories/collection.json @@ -1,22 +1,27 @@ { "schema": { "bsonType": "object", - "required": ["name", "description", "create_date"], + "required": ["name", "create_date"], "properties": { "_id": { "description": "存储文档 ID(文章 ID),系统自动生成" }, "name": { "bsonType": "string", - "description": "类别名称" + "description": "类别名称", + "title":"类别名称" }, "description": { "bsonType": "string", - "description": "类别描述" + "description": "类别描述", + "title":"类别描述" }, "create_date": { "bsonType": "timestamp", - "description": "创建时间" + "description": "创建时间", + "defaultValue": { + "$env": "now" + } } } },