opendb/collection/uni-notification-config/collection.json
2023-03-10 19:49:31 +08:00

40 lines
905 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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": []
}