From 66973b637fe1b9b03627e8ad2a88c426585b4c65 Mon Sep 17 00:00:00 2001 From: DCloud__JSON Date: Fri, 10 Mar 2023 19:49:31 +0800 Subject: [PATCH] add uni-notification-config schema --- .../uni-notification-config/collection.json | 39 +++++++++++++++++++ .../uni-notification-config/package.json | 17 ++++++++ 2 files changed, 56 insertions(+) create mode 100644 collection/uni-notification-config/collection.json create mode 100644 collection/uni-notification-config/package.json diff --git a/collection/uni-notification-config/collection.json b/collection/uni-notification-config/collection.json new file mode 100644 index 0000000..8647115 --- /dev/null +++ b/collection/uni-notification-config/collection.json @@ -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": [] +} diff --git a/collection/uni-notification-config/package.json b/collection/uni-notification-config/package.json new file mode 100644 index 0000000..25a87a1 --- /dev/null +++ b/collection/uni-notification-config/package.json @@ -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": "" + } + ] + } +}