add uni-notification-center collection

This commit is contained in:
linju 2023-02-20 17:24:53 +08:00
parent f1361e9f3f
commit f8acdc2925
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{
"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": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/uni-notification-center",
"version": "0.0.1",
"description": "uni-notification-center",
"keywords": ["消息中心"],
"opendb": {
"title": "统一消息中心",
"type": "collection",
"contributors": [
{
"name": "DCloud_JSON",
"email": "",
"homepage": ""
}
]
}
}