Skip to content

Commit

Permalink
Merge pull request #91 from depromeet/feature/90-add-association-noti…
Browse files Browse the repository at this point in the history
…fication
  • Loading branch information
mybloom authored Dec 5, 2022
2 parents 8e55e1f + 3a22217 commit 7e9b327
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.depromeet.knockknockbackend.domain.notification.domain;

import io.github.depromeet.knockknockbackend.domain.group.domain.Group;
import io.github.depromeet.knockknockbackend.domain.user.domain.User;
import java.time.LocalDateTime;
import javax.persistence.Convert;
Expand All @@ -9,6 +10,7 @@
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import lombok.AccessLevel;
Expand Down Expand Up @@ -39,7 +41,9 @@ public class Notification {
@Convert(converter = AlarmTypeConverter.class)
private AlarmType alarmType;

//+그룹아이디
@JoinColumn(name = "group_id")
@ManyToOne(fetch = FetchType.LAZY)
private Group group;

@JoinColumn(name = "send_user_id")
@OneToOne(fetch = FetchType.LAZY)
Expand Down

0 comments on commit 7e9b327

Please sign in to comment.