From e0113c79cecabfef87fd7ab8f2e9d23354b61d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Tue, 27 Oct 2020 17:19:55 +0800 Subject: [PATCH] update collection/opendb-news-categories/collection.json. --- collection/opendb-news-categories/collection.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/collection/opendb-news-categories/collection.json b/collection/opendb-news-categories/collection.json index db81131..8a50af0 100644 --- a/collection/opendb-news-categories/collection.json +++ b/collection/opendb-news-categories/collection.json @@ -2,6 +2,12 @@ "schema": { "bsonType": "object", "required": ["name"], + "permission": { + ".read": true, + ".create": false, + ".update": false, + ".delete": false + }, "properties": { "_id": { "description": "存储文档 ID(文章 ID),系统自动生成" @@ -33,7 +39,10 @@ }, "create_date": { "bsonType": "timestamp", - "description": "创建时间" + "description": "创建时间", + "defaultValue": { + "$env": "now" + } } } },