2022-12-11 02:30:56 +02:00
|
|
|
{
|
|
|
|
"$jsonSchema": {
|
2023-01-03 16:43:48 +02:00
|
|
|
"required": [
|
|
|
|
"user",
|
|
|
|
"date",
|
|
|
|
"admin",
|
|
|
|
"sponsorship",
|
|
|
|
"sponsorship.streamer",
|
|
|
|
"sponsorship.expires",
|
|
|
|
"sponsorship.proof",
|
|
|
|
"sponsorship.label"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"user": {
|
|
|
|
"bsonType": ["int", "long"],
|
|
|
|
"description": "Telegram ID of user"
|
|
|
|
},
|
|
|
|
"date": {
|
|
|
|
"bsonType": "date",
|
|
|
|
"description": "Date when sponsorship was accepted"
|
|
|
|
},
|
|
|
|
"admin": {
|
|
|
|
"bsonType": ["int", "long"],
|
|
|
|
"description": "Telegram ID of admin that accepted the sponsorship"
|
|
|
|
},
|
|
|
|
"sponsorship": {
|
|
|
|
"bsonType": "object"
|
|
|
|
},
|
|
|
|
"sponsorship.streamer": {
|
|
|
|
"bsonType": "string"
|
|
|
|
},
|
|
|
|
"sponsorship.expires": {
|
|
|
|
"bsonType": "date"
|
|
|
|
},
|
|
|
|
"sponsorship.proof": {
|
2023-01-05 21:45:35 +02:00
|
|
|
"bsonType": "string"
|
2023-01-03 16:43:48 +02:00
|
|
|
},
|
|
|
|
"sponsorship.label": {
|
|
|
|
"bsonType": "string"
|
|
|
|
}
|
|
|
|
}
|
2022-12-11 02:30:56 +02:00
|
|
|
}
|
|
|
|
}
|