Skip to content

Commit 75af3a0

Browse files
committed
👕 fix: add prisma schema relation
1 parent afe47d7 commit 75af3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prisma/schema.prisma

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ model Message {
3434
phone String
3535
message String
3636
listingId Int
37-
listing Car @relation(fields: [listingId], references: [id])
37+
listing Car @relation(fields: [listingId], references: [id], onDelete: Cascade)
3838
}

0 commit comments

Comments
 (0)