add uni-notification-config schema

This commit is contained in:
DCloud__JSON 2023-03-10 19:49:31 +08:00
parent 9b8ae12f0f
commit 66973b637f
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
"schema": {
"bsonType": "object",
"required": [],
"permission": {
"read": "doc.user_id == auth.uid",
"create": false,
"update": "doc.user_id == auth.uid",
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"description": "所属用户id",
"forceDefaultValue": {
"$env": "uid"
}
},
"email": {
"description": "邮件",
"bsonType": "bool",
"defaultValue": true
},
"notification_center": {
"description": "通知中心",
"bsonType": "bool",
"defaultValue": true
},
"weixin_official_accounts": {
"description": "微信公众号",
"bsonType": "bool",
"defaultValue": true
}
}
},
"index": []
}

View File

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