mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-25 22:16:08 +08:00
add uni-notification-center collection
This commit is contained in:
parent
f1361e9f3f
commit
f8acdc2925
38
collection/uni-notification-center/collection.json
Normal file
38
collection/uni-notification-center/collection.json
Normal 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": []
|
||||
}
|
17
collection/uni-notification-center/package.json
Normal file
17
collection/uni-notification-center/package.json
Normal 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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user