feat(db/schema): update schema to update add the whitelist
This commit is contained in:
parent
6678a3e6dc
commit
de2380e82e
1 changed files with 11 additions and 3 deletions
|
|
@ -10,12 +10,17 @@ datasource db {
|
|||
model Bot {
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
status String @default("Big Brother")
|
||||
type String @default("Watching")
|
||||
presence String @default("online")
|
||||
|
||||
buyers User[] @relation("Buyers")
|
||||
owners User[] @relation("Owners")
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @map("user_id")
|
||||
|
||||
isOwner Boolean @default(false)
|
||||
isBuyer Boolean @default(false)
|
||||
isDev Boolean @default(false)
|
||||
|
|
@ -25,11 +30,13 @@ model User {
|
|||
botsAsBuyer Bot[] @relation("Buyers")
|
||||
botsAsOwner Bot[] @relation("Owners")
|
||||
|
||||
WhitelistedGuilds Guild[] @relation("GuildWhitelist")
|
||||
guildUsers GuildUser[] @relation("UserGuildRelation")
|
||||
}
|
||||
|
||||
model Guild {
|
||||
id String @id @map("guild_id")
|
||||
|
||||
log Boolean @default(false)
|
||||
logBot Boolean @default(false)
|
||||
logChannel Boolean @default(false)
|
||||
|
|
@ -42,6 +49,7 @@ model Guild {
|
|||
color String @default("#000000")
|
||||
|
||||
guildUsers GuildUser[] @relation("GuildGuildRelation")
|
||||
WlUsers User[] @relation("GuildWhitelist")
|
||||
}
|
||||
|
||||
model GuildUser {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue