mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 06:21:14 +08:00
update: opendb-msg 移除默认 create 权限, 补充字段 from_id,create_date 数据类型
This commit is contained in:
parent
d343961235
commit
5abb94b5e9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user