generated from lucxjo/template
30 lines
686 B
Plaintext
30 lines
686 B
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
previewFeatures = ["postgresqlExtensions"]
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model guild {
|
|
id String @id @unique
|
|
name String
|
|
reports_channel_id String?
|
|
auto_create_booster_roles Boolean @default(true)
|
|
}
|
|
|
|
model member {
|
|
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
|
name String
|
|
booster_role_id String?
|
|
created_at DateTime @default(now())
|
|
/// Discord Guild ID
|
|
dgid String
|
|
/// Discord User ID
|
|
duid String
|
|
|
|
@@unique([dgid, duid])
|
|
}
|