Added DB validation for warnings

This commit is contained in:
Profitroll 2022-12-21 12:26:05 +01:00
parent d3945eea0c
commit be55f8a3b1

View File

@ -1,6 +1,28 @@
{ {
"$jsonSchema": { "$jsonSchema": {
"required": [], "required": [
"properties": {} "user",
"admin",
"date",
"reason"
],
"properties": {
"user": {
"bsonType": ["int", "long"],
"description": "Telegram ID of user"
},
"admin": {
"bsonType": ["int", "long"],
"description": "Telegram ID of admin"
},
"date": {
"bsonType": "date",
"description": "Date and time of getting"
},
"reason": {
"bsonType": "string",
"description": "Broken rule or admin's comment"
}
}
} }
} }