opendb/collection/uni-notification-center/collection.json
2023-02-20 17:24:53 +08:00

39 lines
755 B
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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": []
}