Skip to content

Commit

Permalink
craete index
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Nov 15, 2024
1 parent f21b748 commit 441ceec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prisma/migrations/20241115131300_create_indexes/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "MessageReaction_messageId_idx" ON "MessageReaction"("messageId");
4 changes: 4 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ model MessageReaction {
messageId String
message Message @relation(fields: [messageId], references: [id], onDelete: Cascade)
@@index([messageId])
}

model ReactedMessageUser {
Expand Down

0 comments on commit 441ceec

Please sign in to comment.