From e1673c7036bca4000a0af5e05014b1c7ed5341f8 Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 27 Feb 2023 18:08:34 +0800 Subject: [PATCH] add uni-notification-read-log.schema --- .../uni-notification-read-log/collection.json | 28 +++++++++++++++++++ .../uni-notification-read-log/package.json | 17 +++++++++++ 2 files changed, 45 insertions(+) create mode 100644 collection/uni-notification-read-log/collection.json create mode 100644 collection/uni-notification-read-log/package.json diff --git a/collection/uni-notification-read-log/collection.json b/collection/uni-notification-read-log/collection.json new file mode 100644 index 0000000..61f7034 --- /dev/null +++ b/collection/uni-notification-read-log/collection.json @@ -0,0 +1,28 @@ +{ + "schema": { + "bsonType": "object", + "required": [], + "permission": { + "read": "auth.uid == doc.user_id", + "create": "auth.uid == doc.user_id", + "update": "auth.uid == doc.user_id", + "delete": "auth.uid == doc.user_id" + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "notification_id": { + "bsonType": "string", + "foreignKey": "uni-notification-center._id" + }, + "create_time": { + "bsonType": "timestamp", + "forceDefaultValue": { + "$env": "now" + } + } + } + }, + "index": [] +} diff --git a/collection/uni-notification-read-log/package.json b/collection/uni-notification-read-log/package.json new file mode 100644 index 0000000..46be83c --- /dev/null +++ b/collection/uni-notification-read-log/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/uni-notification-read-log", + "version": "0.0.1", + "description": "uni-notification-read-log", + "keywords": ["统一公告消息读取记录"], + "opendb": { + "title": "统一公告消息读取记录", + "type": "collection", + "contributors": [ + { + "name": "DCloud_JSON", + "email": "", + "homepage": "" + } + ] + } +}