mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +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"],
|
"required": ["to_uid", "body", "type"],
|
||||||
"permission": {
|
"permission": {
|
||||||
"read": "auth.uid == doc.to_uid",
|
"read": "auth.uid == doc.to_uid",
|
||||||
"create": true,
|
"create": false,
|
||||||
"update": false,
|
"update": false,
|
||||||
"delete": false
|
"delete": false
|
||||||
},
|
},
|
||||||
@ -13,6 +13,7 @@
|
|||||||
"description": "ID,系统自动生成"
|
"description": "ID,系统自动生成"
|
||||||
},
|
},
|
||||||
"from_uid": {
|
"from_uid": {
|
||||||
|
"bsonType": "string",
|
||||||
"description": "消息发送方 UserID(用于指定发送消息方帐号)",
|
"description": "消息发送方 UserID(用于指定发送消息方帐号)",
|
||||||
"forceDefaultValue": {
|
"forceDefaultValue": {
|
||||||
"$env": "uid"
|
"$env": "uid"
|
||||||
@ -28,6 +29,7 @@
|
|||||||
"forceDefaultValue": false
|
"forceDefaultValue": false
|
||||||
},
|
},
|
||||||
"create_date": {
|
"create_date": {
|
||||||
|
"bsonType": "timestamp",
|
||||||
"description": "消息发送时间戳",
|
"description": "消息发送时间戳",
|
||||||
"forceDefaultValue": {
|
"forceDefaultValue": {
|
||||||
"$env": "now"
|
"$env": "now"
|
||||||
|
Loading…
Reference in New Issue
Block a user