Added DB validation for warnings

This commit is contained in:
Profitroll 2022-12-21 12:26:05 +01:00
parent d3945eea0c
commit be55f8a3b1
1 changed files with 24 additions and 2 deletions

View File

@ -1,6 +1,28 @@
{
"$jsonSchema": {
"required": [],
"properties": {}
"required": [
"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"
}
}
}
}