2023-02-27 18:08:34 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": [],
|
|
|
|
|
"permission": {
|
|
|
|
|
"read": "auth.uid == doc.user_id",
|
2023-02-27 20:32:28 +08:00
|
|
|
|
"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"
|
|
|
|
|
},
|
2023-02-27 20:32:28 +08:00
|
|
|
|
"user_id": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "uid"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-02-27 18:08:34 +08:00
|
|
|
|
"create_time": {
|
|
|
|
|
"bsonType": "timestamp",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": []
|
|
|
|
|
}
|