Skip to content

Commit

Permalink
Merge pull request #239 from team-peekabook/develop
Browse files Browse the repository at this point in the history
�prisma 연동 이슈 대응
  • Loading branch information
yeseul106 authored Feb 1, 2024
2 parents fd3b9dc + 2ee49c0 commit 098e3ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ model Recommend {
recommendedBy Int
recommendTo Int
bookId Int
Book Book @relation(fields: [bookId], references: [id], onDelete: Cascade, map: "recommend_book_id_fk")
createdAt DateTime @default(now())
recommendToToUser User @relation("Recommend_recommendToToUser", fields: [recommendTo], references: [id], onDelete: Cascade, map: "recommend_user_id_fk_2")
recommendedByToUser User @relation("Recommend_recommendedByToUser", fields: [recommendedBy], references: [id], onDelete: Cascade, map: "recommend_user_id_fk")
Expand Down

0 comments on commit 098e3ec

Please sign in to comment.