From e3a7bde0c1bc2ad1d2b072681ca9029e9aa3404e Mon Sep 17 00:00:00 2001 From: Lee SeungHeon <51286325+dev-Crayon@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:42:40 +0900 Subject: [PATCH] Fix/#545 is coffee chat activate (#546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Fix]: users테이블에 사용하지 않는 컬럼 삭제 Related to: #545 * [Fix]: 불필요한 어노테이션 삭제 Related to: #545 --- .../java/org/sopt/makers/internal/domain/Member.java | 12 ------------ .../makers/internal/repository/MemberRepository.java | 6 ------ 2 files changed, 18 deletions(-) diff --git a/src/main/java/org/sopt/makers/internal/domain/Member.java b/src/main/java/org/sopt/makers/internal/domain/Member.java index 41386513..98f58c5d 100644 --- a/src/main/java/org/sopt/makers/internal/domain/Member.java +++ b/src/main/java/org/sopt/makers/internal/domain/Member.java @@ -6,7 +6,6 @@ import javax.persistence.*; import java.time.LocalDate; -import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; @@ -136,17 +135,6 @@ public class Member { @ColumnDefault("true") private Boolean isPhoneBlind = true; - @Builder.Default - @Column(nullable = false) - @ColumnDefault("false") - private Boolean isCoffeeChatActivate = false; - - @Column(name = "coffee_chat_bio") - private String coffeeChatBio; - - @Column(name = "coffee_chat_updated_at") - private LocalDateTime coffeeChatUpdatedAt; - public void editActivityChange(Boolean isCheck) { this.editActivitiesAble = isCheck; } diff --git a/src/main/java/org/sopt/makers/internal/repository/MemberRepository.java b/src/main/java/org/sopt/makers/internal/repository/MemberRepository.java index 1de51fb0..1026f801 100644 --- a/src/main/java/org/sopt/makers/internal/repository/MemberRepository.java +++ b/src/main/java/org/sopt/makers/internal/repository/MemberRepository.java @@ -13,14 +13,8 @@ public interface MemberRepository extends JpaRepository { Optional findByAuthUserId(String authId); - Optional findByIdAndHasProfileTrue(Long id); - List findAllByNameContaining(String name); - List findAllByHasProfileTrue(); - - List findAllByIsCoffeeChatActivateTrue(); - List findAllByHasProfileTrueAndIdIn(List memberIds); Long countByIdIn(Set memberIds); }