mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-14 06:53:00 +08:00
40 lines
905 B
JSON
40 lines
905 B
JSON
{
|
||
"schema": {
|
||
"bsonType": "object",
|
||
"required": [],
|
||
"permission": {
|
||
"read": "doc.user_id == auth.uid",
|
||
"create": false,
|
||
"update": "doc.user_id == auth.uid",
|
||
"delete": false
|
||
},
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"user_id": {
|
||
"description": "所属用户id",
|
||
"forceDefaultValue": {
|
||
"$env": "uid"
|
||
}
|
||
},
|
||
"email": {
|
||
"description": "邮件",
|
||
"bsonType": "bool",
|
||
"defaultValue": true
|
||
},
|
||
"notification_center": {
|
||
"description": "通知中心",
|
||
"bsonType": "bool",
|
||
"defaultValue": true
|
||
},
|
||
"weixin_official_accounts": {
|
||
"description": "微信公众号",
|
||
"bsonType": "bool",
|
||
"defaultValue": true
|
||
}
|
||
}
|
||
},
|
||
"index": []
|
||
}
|