2023-06-11 12:09:45 +00:00
|
|
|
generator client {
|
2023-06-18 13:05:21 +00:00
|
|
|
provider = "prisma-client-js"
|
|
|
|
previewFeatures = ["postgresqlExtensions"]
|
2023-06-11 12:09:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "postgresql"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model guild {
|
|
|
|
id String @id @unique
|
|
|
|
name String
|
|
|
|
reports_channel_id String?
|
|
|
|
}
|
2023-06-18 11:34:31 +00:00
|
|
|
|
|
|
|
model member {
|
2023-06-18 13:05:21 +00:00
|
|
|
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
2023-06-18 11:34:31 +00:00
|
|
|
name String
|
2023-06-18 13:05:21 +00:00
|
|
|
booster_role_id String?
|
|
|
|
created_at DateTime @default(now())
|
|
|
|
/// Discord Guild ID
|
|
|
|
dgid String
|
|
|
|
/// Discord User ID
|
|
|
|
duid String
|
|
|
|
|
|
|
|
@@unique([dgid, duid])
|
2023-06-18 11:34:31 +00:00
|
|
|
}
|