Skip to content

Commit

Permalink
Merge pull request #240 from team-peekabook/develop
Browse files Browse the repository at this point in the history
[FIX] prisma 누락된 부분 추가
  • Loading branch information
yeseul106 authored Feb 1, 2024
2 parents 098e3ec + 4cc13a0 commit 94a6215
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ model Book {
bookImage String? @db.VarChar(500)
publisher String @db.VarChar(50)
Bookshelf Bookshelf[]
Recommend Recommend[]
}

model Bookshelf {
Expand Down Expand Up @@ -80,8 +81,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 +133,4 @@ model Version {
imageUrl String? @db.VarChar(500)
text String? @db.VarChar(255)
iosForceVersion String? @db.VarChar(255)
}
}

0 comments on commit 94a6215

Please sign in to comment.