From 2b45d88d0e3d31eecb76a3b2e76aea44f611c5cf Mon Sep 17 00:00:00 2001 From: yeseul106 <20191037@sungshin.ac.kr> Date: Thu, 1 Feb 2024 21:29:57 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20prisma=20=EB=88=84=EB=9D=BD=EB=90=9C=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index b21e951..de41056 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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[] @@ -132,4 +132,4 @@ model Version { imageUrl String? @db.VarChar(500) text String? @db.VarChar(255) iosForceVersion String? @db.VarChar(255) -} +} \ No newline at end of file