Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] prisma 누락된 부분 추가 #240

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}
}
Loading