Skip to content

Commit

Permalink
refactor :: book 테이블 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ta2ye0n committed Apr 10, 2024
1 parent ac57fc5 commit 4c1b567
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/com/mindway/server/v2/domain/Book/entity/Book.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}

0 comments on commit 4c1b567

Please sign in to comment.