WIP: Database migrations

This commit is contained in:
kku
2024-12-27 22:43:40 +01:00
parent eb8019ccfe
commit 4f6c99f211
12 changed files with 254 additions and 50 deletions

View File

@@ -2,21 +2,26 @@
"$jsonSchema": {
"required": [
"user",
"customrole",
"customchannel"
"custom_role",
"custom_channel"
],
"properties": {
"user": {
"bsonType": "long",
"description": "Discord ID of user"
},
"customrole": {
"bsonType": ["null", "long"],
"custom_role": {
"bsonType": [
"null",
"long"
],
"description": "Discord ID of custom role or 'null' if not set"
},
"customchannel": {
"bsonType": ["null", "long"],
"custom_channel": {
"bsonType": [
"null",
"long"
],
"description": "Discord ID of custom channel or 'null' if not set"
}
}