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"