GalaxyCogs/moderation/prisma/schema.prisma
SeaswimmerTheFsh 9ec42f5d60
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 58s
feat(moderation): adding prisma schema
2023-10-26 21:05:01 -04:00

28 lines
626 B
Text

datasource db {
provider = "sqlite"
url = "file:moderation.db"
}
generator client {
provider = "prisma-client-py"
interface = "asyncio"
recursive_type_depth = 5
}
model Moderation {
moderationId Int @id @unique
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([moderationId, targetId, moderatorId])
}