Skip to content

Commit

Permalink
refactor: Update UserProfileImage relation to enable cascading deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
PleBea committed Jul 19, 2024
1 parent 0a1666e commit c94a170
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 @@ -31,7 +31,7 @@ model User {
model UserProfileImage {
url String @id
userId String
user User @relation(fields: [userId], references: [id])
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
}

Expand Down

0 comments on commit c94a170

Please sign in to comment.