43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"$jsonSchema": {
|
|
"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": {
|
|
"bsonType": "binData"
|
|
},
|
|
"sponsorship.label": {
|
|
"bsonType": "string"
|
|
}
|
|
}
|
|
}
|
|
} |