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

35 lines
760 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": true,
2023-02-27 18:08:34 +08:00
"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"
},
"user_id": {
"bsonType": "string",
"forceDefaultValue": {
"$env": "uid"
}
},
2023-02-27 18:08:34 +08:00
"create_time": {
"bsonType": "timestamp",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": []
}