[회원 정보 개선] Member 엔티티의 테이블 이름을 AppConstants.TABLE_PREFIX를 사용하여 동적으로 설정하도록 수정하고, AppConstants 클래스를 추가하여 테이블 접두사를 정의

This commit is contained in:
2025-08-25 09:45:49 +09:00
parent b1218ab9bb
commit 8cee267f36
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package com.bio.bio_backend.domain.base.member.entity;
import com.bio.bio_backend.domain.base.member.enums.MemberRole;
import com.bio.bio_backend.global.constants.AppConstants;
import com.bio.bio_backend.global.entity.BaseEntity;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
@@ -17,7 +18,7 @@ import java.time.LocalDateTime;
@AllArgsConstructor
@Builder
@Table(
name = "st_member",
name = AppConstants.TABLE_PREFIX + "member",
indexes = {
@Index(name = "idx_member_user_id", columnList = "user_id")
}

View File

@@ -0,0 +1,5 @@
package com.bio.bio_backend.global.constants;
public class AppConstants {
public static final String TABLE_PREFIX = "st_";
}