Does some tasks from #34

This commit is contained in:
2023-04-02 16:44:46 +02:00
parent 43e71c95c4
commit 972827d6c2
5 changed files with 75 additions and 6 deletions

View File

@@ -4,15 +4,23 @@
"user",
"admin",
"date",
"reason"
"reason",
"active",
"revoke_date"
],
"properties": {
"user": {
"bsonType": ["int", "long"],
"bsonType": [
"int",
"long"
],
"description": "Telegram ID of user"
},
"admin": {
"bsonType": ["int", "long"],
"bsonType": [
"int",
"long"
],
"description": "Telegram ID of admin"
},
"date": {
@@ -22,6 +30,17 @@
"reason": {
"bsonType": "string",
"description": "Broken rule or admin's comment"
},
"active": {
"bsonType": "bool",
"description": "Whether warning is still present"
},
"revoke_date": {
"bsonType": [
"date",
"null"
],
"description": "Date when warning got inactive"
}
}
}