SeaswimmerTheFsh
9f86c20df4
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 1m0s
BREAKING: changed database schema
30 lines
678 B
Text
30 lines
678 B
Text
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:moderation.db"
|
|
}
|
|
|
|
generator client {
|
|
provider = "prisma-client-py"
|
|
interface = "asyncio"
|
|
recursive_type_depth = 5
|
|
}
|
|
|
|
model Case {
|
|
globalId Int @id @unique
|
|
guildId BigInt
|
|
moderationId Int
|
|
timestamp DateTime
|
|
moderationType String
|
|
targetId BigInt
|
|
moderatorId BigInt
|
|
roleId BigInt?
|
|
duration String?
|
|
endTimestamp DateTime?
|
|
reason String?
|
|
resolved Boolean
|
|
resolvedBy BigInt?
|
|
resolveReason String?
|
|
expired Boolean
|
|
|
|
@@index([guildId, moderationId, targetId, moderatorId])
|
|
}
|