Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermayone committed Jul 17, 2024
1 parent 63cca5d commit 0e12cd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ model Message {
deleted Boolean @default(false) // if the message was deleted
updated Boolean @default(false) // if the message was updated
reactions Reaction[]
threads Thread[]
// threads Thread[]
topThread Thread? @relation(fields: [threadId], references: [id])
threadId String?
}

model Thread {
id String @id @unique @default(uuid())
ts String @unique
topMessage Message @relation(fields: [messageId], references: [id])
messages Message[]
messageId String
id String @id @unique @default(uuid())
ts String @unique
// topMessage Message @relation(fields: [messageId], references: [id]
messages Message[]
messageId String
}

model Reaction {
Expand Down

0 comments on commit 0e12cd0

Please sign in to comment.