Skip to content

Commit

Permalink
feat: UserFcmToken 연관관계 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
swa07016 committed Mar 10, 2024
1 parent ad7c626 commit a2f88ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public Long delete(Long id, String reason) {
.collect(Collectors.toList());
userFcmTokenRepository.deleteAllByIdInBatch(userFcmTokenIds);


// 탈퇴 히스토리 테이블에 탈퇴 정보 기록
userExitHistoryRepository.save(UserExitHistory.from(user, reason));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class UserFcmToken extends BaseEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "userId", nullable = false)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "userId")
private User user;

private String deviceId;
Expand Down

0 comments on commit a2f88ab

Please sign in to comment.