Skip to content

Commit

Permalink
hopefully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko2 committed Aug 8, 2024
1 parent c065f0d commit bd3d955
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,14 @@ model Bet {
}

model Message {
id Int @id @default(autoincrement())
id Int @id @default(autoincrement())
content String
attachment String?
createdAt DateTime @default(now())
user User @relation(fields: [userId], references: [id])
createdAt DateTime @default(now())
user User @relation(fields: [userId], references: [id])
userId Int
Channel Channel @relation(fields: [channelId], references: [id])
Channel Channel @relation(fields: [channelId], references: [id])
channelId Int
Reaction Reaction[]
}

model Channel {
Expand Down

0 comments on commit bd3d955

Please sign in to comment.