feat(db): add table for logging clear commands

This commit is contained in:
Anthony Berg 2024-08-06 20:48:19 +02:00
parent f77758c039
commit c76a514a2c

View File

@ -66,6 +66,7 @@ model User {
TempBanEndMod TempBan[] @relation("endTbanMod")
VCMuteUser VCMute[] @relation("vcMuteUser")
VCMuteMod VCMute[] @relation("vcMuteMod")
ClearCommandMod ClearCommand[]
}
model Verify {
@ -312,3 +313,11 @@ model VCMute {
endTime DateTime?
reason String?
}
model ClearCommand {
id Int @id @default(autoincrement())
mod User @relation(fields: [modId], references: [id])
modId String
messages Int
time DateTime @default(now())
}