From de2380e82eb5216542a83c036f77697c2811cf68 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 31 Jul 2025 23:13:03 +0200 Subject: [PATCH] feat(db/schema): update schema to update add the whitelist --- prisma/schema.prisma | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8d44c6e..1ce1aac 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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") + 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") - guildUsers GuildUser[] @relation("UserGuildRelation") + WhitelistedGuilds Guild[] @relation("GuildWhitelist") + guildUsers GuildUser[] @relation("UserGuildRelation") } model Guild { - id String @id @map("guild_id") + 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 {