29 lines
626 B
Text
29 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])
|
||
|
}
|