opendb/collection/uni-notification-read-log/collection.json

29 lines
652 B
JSON
Raw Normal View History

2023-02-27 18:08:34 +08:00
{
"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": []
}