mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-27 15:01:15 +08:00
35 lines
760 B
JSON
35 lines
760 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"required": [],
|
||
"permission": {
|
||
"read": "auth.uid == doc.user_id",
|
||
"create": true,
|
||
"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"
|
||
}
|
||
},
|
||
"create_time": {
|
||
"bsonType": "timestamp",
|
||
"forceDefaultValue": {
|
||
"$env": "now"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"index": []
|
||
}
|