er/prisma/schema.prisma
Louis Hollingworth a37a8a6935
Now role auto creation on boost can be disabled
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
2023-06-22 20:40:29 +01:00

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])
}