Skip to content

Commit

Permalink
[FIX] prisma 누락된 부분 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Feb 1, 2024
1 parent 2ee49c0 commit 2b45d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ 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())
Book Book @relation(fields: [bookId], references: [id], onDelete: Cascade, map: "recommend_book_id_fk")
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")
RecommendAlarm RecommendAlarm[]
Expand Down Expand Up @@ -132,4 +132,4 @@ model Version {
imageUrl String? @db.VarChar(500)
text String? @db.VarChar(255)
iosForceVersion String? @db.VarChar(255)
}
}

0 comments on commit 2b45d88

Please sign in to comment.