add uni-notification-read-log.schema

This commit is contained in:
linju 2023-02-27 18:08:34 +08:00
parent 4d507df872
commit e1673c7036
2 changed files with 45 additions and 0 deletions

View File

@ -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": []
}

View File

@ -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": ""
}
]
}
}