Skip to content

Commit

Permalink
fix: 교수 삭제시 review SetNull로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yesjuhee committed May 1, 2024
1 parent 6be93be commit 6774768
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 @@ -120,7 +120,7 @@ model Review {
thesisInfoId Int?
fileId String? @unique
file File? @relation(fields: [fileId], references: [uuid])
reviewer User? @relation(fields: [reviewerId], references: [id], onDelete: Cascade)
reviewer User? @relation(fields: [reviewerId], references: [id], onDelete: SetNull)
thesisInfo ThesisInfo? @relation(fields: [thesisInfoId], references: [id], onDelete: Cascade)
@@index([reviewerId], map: "review_reviewerId_fkey")
Expand Down

0 comments on commit 6774768

Please sign in to comment.