{ "$jsonSchema": { "required": [ "id", "locale", "enabled", "location", "offset", "time_hour", "time_minute" ], "properties": { "id": { "bsonType": [ "int", "long" ], "description": "Telegram ID of user" }, "locale": { "bsonType": [ "string", "null" ], "description": "Preferred language of strings" }, "enabled": { "bsonType": "bool", "description": "Whether notifications are enabled" }, "location": { "bsonType": [ "int", "long" ], "description": "ID of user's location" }, "offset": { "bsonType": [ "int" ], "description": "Offset between event and notification in days" }, "time_hour": { "bsonType": [ "int" ], "description": "Hour of notifications" }, "time_minute": { "bsonType": [ "int" ], "description": "Minute of notifications" } } } }