generated from lucxjo/template
(#2) Members can now be in multiple guilds
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
e8f797d1e0
commit
530e99a7d0
4 changed files with 27 additions and 22 deletions
|
|
@ -1,5 +1,6 @@
|
|||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
provider = "prisma-client-js"
|
||||
previewFeatures = ["postgresqlExtensions"]
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
|
@ -14,7 +15,14 @@ model guild {
|
|||
}
|
||||
|
||||
model member {
|
||||
id String @id @unique
|
||||
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||
name String
|
||||
booster_role_id String @unique
|
||||
booster_role_id String?
|
||||
created_at DateTime @default(now())
|
||||
/// Discord Guild ID
|
||||
dgid String
|
||||
/// Discord User ID
|
||||
duid String
|
||||
|
||||
@@unique([dgid, duid])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue