GalaxyCogs/moderation/prisma/schema.prisma
SeaswimmerTheFsh 9f86c20df4
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 1m0s
feat(moderation): updated prisma_log (mysql_log) and get_next_case_number to use prisma, added get_next_global_case_number
BREAKING: changed database schema
2023-10-27 10:40:18 -04:00

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])
}