Skip to content

Commit

Permalink
add :: User와 연관관계 매핑
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Apr 1, 2024
1 parent 849641e commit a0df475
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -24,4 +25,8 @@ public class Goal {
private LocalDate ended_at;

private Long goal_count;

@ManyToOne
@JoinColumn(name = "user_id")
private User user;
}

0 comments on commit a0df475

Please sign in to comment.