mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
add uni-notification-config schema
This commit is contained in:
parent
9b8ae12f0f
commit
66973b637f
39
collection/uni-notification-config/collection.json
Normal file
39
collection/uni-notification-config/collection.json
Normal 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": []
|
||||||
|
}
|
17
collection/uni-notification-config/package.json
Normal file
17
collection/uni-notification-config/package.json
Normal 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": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user