mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
add uni-notification-read-log.schema
This commit is contained in:
parent
4d507df872
commit
e1673c7036
28
collection/uni-notification-read-log/collection.json
Normal file
28
collection/uni-notification-read-log/collection.json
Normal 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": []
|
||||||
|
}
|
17
collection/uni-notification-read-log/package.json
Normal file
17
collection/uni-notification-read-log/package.json
Normal 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": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user