From 5abb94b5e9674dd34a7d74e43fa51879c3229f16 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 24 Jun 2021 11:17:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=20opendb-msg=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=20create=20=E6=9D=83=E9=99=90,=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E5=AD=97=E6=AE=B5=20from=5Fid,create=5Fdate=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-msg/collection.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collection/opendb-msg/collection.json b/collection/opendb-msg/collection.json index 5239889..ea82492 100644 --- a/collection/opendb-msg/collection.json +++ b/collection/opendb-msg/collection.json @@ -4,7 +4,7 @@ "required": ["to_uid", "body", "type"], "permission": { "read": "auth.uid == doc.to_uid", - "create": true, + "create": false, "update": false, "delete": false }, @@ -13,6 +13,7 @@ "description": "ID,系统自动生成" }, "from_uid": { + "bsonType": "string", "description": "消息发送方 UserID(用于指定发送消息方帐号)", "forceDefaultValue": { "$env": "uid" @@ -28,6 +29,7 @@ "forceDefaultValue": false }, "create_date": { + "bsonType": "timestamp", "description": "消息发送时间戳", "forceDefaultValue": { "$env": "now"