GalaxyCogs/moderation/prisma/schema.prisma

29 lines
626 B
Text
Raw Normal View History

2023-10-26 21:05:01 -04:00
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])
}