mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
39 lines
755 B
JSON
39 lines
755 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"permission": {
|
||
"create": false,
|
||
"delete": false,
|
||
"read": "auth.uid == doc.user_id",
|
||
"update": false
|
||
},
|
||
"required": [
|
||
"user_id",
|
||
"content"
|
||
],
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"title":{
|
||
"description": "标题",
|
||
"bsonType": "string"
|
||
},
|
||
"content":{
|
||
"description": "内容",
|
||
"bsonType": "string"
|
||
},
|
||
"user_id":{
|
||
"description": "消息接收者的用户id"
|
||
},
|
||
"create_time":{
|
||
"description": "创建时间",
|
||
"forceDefaultValue":{
|
||
"$env": "now"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"index": []
|
||
}
|