From 4c1b567212b31f25b8dff014f459843d55e892c6 Mon Sep 17 00:00:00 2001 From: taeyeon Date: Thu, 11 Apr 2024 00:33:42 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20::=20book=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mindway/server/v2/domain/Book/entity/Book.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mindway/server/v2/domain/Book/entity/Book.java b/src/main/java/com/mindway/server/v2/domain/Book/entity/Book.java index 9326c27..70059b5 100644 --- a/src/main/java/com/mindway/server/v2/domain/Book/entity/Book.java +++ b/src/main/java/com/mindway/server/v2/domain/Book/entity/Book.java @@ -1,5 +1,6 @@ package com.mindway.server.v2.domain.Book.entity; +import com.mindway.server.v2.domain.goal.entity.Goal; import com.mindway.server.v2.domain.user.entity.User; import jakarta.persistence.*; import lombok.AllArgsConstructor; @@ -22,13 +23,13 @@ public class Book { private String title; - private String author; - - private String url; - - private LocalDate created_at; + private String plot; // 줄거리 @ManyToOne @JoinColumn(name = "user_id") private User user; + + @ManyToOne + @JoinColumn(name = "goal_id") + private Goal goal; }