Added DB validation for warnings
This commit is contained in:
parent
d3945eea0c
commit
be55f8a3b1
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user