diff --git a/prisma/example.mongodb.schema.prisma b/prisma/example.mongodb.schema.prisma index f9e91d211..bc9a024ae 100644 --- a/prisma/example.mongodb.schema.prisma +++ b/prisma/example.mongodb.schema.prisma @@ -21,7 +21,6 @@ model Guild { stay Stay? dj Dj? roles Role[] - botchannel Botchannel? setup Setup? } @@ -64,12 +63,6 @@ model Song { @@unique([track, playlistId]) } -model Botchannel { - guildId String @id @map("_id") - textId String - Guild Guild @relation(fields: [guildId], references: [guildId]) -} - model Setup { guildId String @id @map("_id") textId String diff --git a/prisma/example.postgresql.schema.prisma b/prisma/example.postgresql.schema.prisma index 6502bfa67..3d131913d 100644 --- a/prisma/example.postgresql.schema.prisma +++ b/prisma/example.postgresql.schema.prisma @@ -21,7 +21,6 @@ model Guild { stay Stay? dj Dj? roles Role[] - botchannel Botchannel? setup Setup? } @@ -64,12 +63,6 @@ model Song { @@unique([track, playlistId]) } -model Botchannel { - guildId String @id - textId String - Guild Guild @relation(fields: [guildId], references: [guildId]) -} - model Setup { guildId String @id textId String diff --git a/src/database/server.ts b/src/database/server.ts index 547e5b8ff..2850aa980 100644 --- a/src/database/server.ts +++ b/src/database/server.ts @@ -1,14 +1,4 @@ -import { - type Botchannel, - type Dj, - type Guild, - type Playlist, - PrismaClient, - type Role, - type Setup, - type Song, - type Stay, -} from "@prisma/client"; +import { type Dj, type Guild, type Playlist, PrismaClient, type Role, type Setup, type Song, type Stay } from "@prisma/client"; import config from "../config.js"; export default class ServerData { @@ -87,18 +77,6 @@ export default class ServerData { await this.prisma.role.deleteMany({ where: { guildId } }); } - public async getBotChannel(guildId: string): Promise { - return await this.prisma.botchannel.findUnique({ where: { guildId } }); - } - - public async setBotChannel(guildId: string, textId: string): Promise { - await this.prisma.botchannel.upsert({ - where: { guildId }, - update: { textId }, - create: { guildId, textId }, - }); - } - public async getSetup(guildId: string): Promise { return await this.prisma.setup.findUnique({ where: { guildId } }); }