Skip to content

Commit

Permalink
cascade
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Dec 4, 2023
1 parent a5a5b38 commit fb92ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ model LastReadMessage {
userId String
organizationId String
lastMessage Messages @relation(fields: [lastMessageId], references: [id])
lastMessage Messages @relation(fields: [lastMessageId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
Expand Down

0 comments on commit fb92ac0

Please sign in to comment.