update: opendb-msg 移除默认 create 权限, 补充字段 from_id,create_date 数据类型

This commit is contained in:
handongxun 2021-06-24 11:17:07 +08:00
parent d343961235
commit 5abb94b5e9

View File

@ -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"