Skip to content

Commit

Permalink
fixed mongo schema
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Sep 29, 2024
1 parent 09ed9c1 commit 2635605
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions prisma/example.mongodb.schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ datasource db {
}

model Bot {
botId String @unique
botId String @id @map("_id")
totalPlaySong Int
}

model Guild {
guildId String @id
guildId String @id @map("_id")
prefix String
language String? @default("EnglishUS")
stay Stay?
Expand All @@ -30,28 +30,28 @@ model Guild {
}

model Stay {
guildId String @id
guildId String @id @map("_id")
textId String
voiceId String
Guild Guild @relation(fields: [guildId], references: [guildId])
}

model Dj {
guildId String @id
guildId String @id @map("_id")
mode Boolean
Guild Guild @relation(fields: [guildId], references: [guildId])
}

model Role {
guildId String
guildId String @id @map("_id")
roleId String
Guild Guild @relation(fields: [guildId], references: [guildId])
@@unique([guildId, roleId])
}

model Playlist {
id String @id @default(uuid())
id String @id @default(uuid()) @map("_id")
userId String
name String
tracks String? // Store the array of encoded tracks as a JSON string
Expand All @@ -60,7 +60,7 @@ model Playlist {
}

model Setup {
guildId String @id
guildId String @id @map("_id")
textId String
messageId String
Guild Guild @relation(fields: [guildId], references: [guildId])
Expand Down

0 comments on commit 2635605

Please sign in to comment.