diff --git a/src/main/java/com/mindway/server/v2/domain/goal/entity/Goal.java b/src/main/java/com/mindway/server/v2/domain/goal/entity/Goal.java index e55d799..eea3e39 100644 --- a/src/main/java/com/mindway/server/v2/domain/goal/entity/Goal.java +++ b/src/main/java/com/mindway/server/v2/domain/goal/entity/Goal.java @@ -1,5 +1,6 @@ package com.mindway.server.v2.domain.goal.entity; +import com.mindway.server.v2.domain.user.entity.User; import jakarta.persistence.*; import lombok.AllArgsConstructor; import lombok.Builder; @@ -24,4 +25,8 @@ public class Goal { private LocalDate ended_at; private Long goal_count; + + @ManyToOne + @JoinColumn(name = "user_id") + private User user; }