Skip to content

Commit

Permalink
[FIX] 책 작가 글자수 증가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Feb 1, 2024
1 parent 9120220 commit 549bda9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ model User {
model Book {
id Int @id @unique @default(autoincrement())
bookTitle String @db.VarChar(500)
author String @db.VarChar(50)
author String @db.VarChar(100)
bookImage String? @db.VarChar(500)
publisher String @db.VarChar(50)
Bookshelf Bookshelf[]
Recommend Recommend[]
}

model Bookshelf {
Expand Down Expand Up @@ -82,7 +81,6 @@ model Recommend {
recommendTo Int
bookId Int
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

0 comments on commit 549bda9

Please sign in to comment.