[회원 정보 개선] Member 엔티티의 테이블 이름을 AppConstants.TABLE_PREFIX를 사용하여 동적으로 설정하도록 수정하고, AppConstants 클래스를 추가하여 테이블 접두사를 정의
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.bio.bio_backend.domain.base.member.entity;
|
package com.bio.bio_backend.domain.base.member.entity;
|
||||||
|
|
||||||
import com.bio.bio_backend.domain.base.member.enums.MemberRole;
|
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 com.bio.bio_backend.global.entity.BaseEntity;
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -17,7 +18,7 @@ import java.time.LocalDateTime;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@Builder
|
@Builder
|
||||||
@Table(
|
@Table(
|
||||||
name = "st_member",
|
name = AppConstants.TABLE_PREFIX + "member",
|
||||||
indexes = {
|
indexes = {
|
||||||
@Index(name = "idx_member_user_id", columnList = "user_id")
|
@Index(name = "idx_member_user_id", columnList = "user_id")
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
package com.bio.bio_backend.global.constants;
|
||||||
|
|
||||||
|
public class AppConstants {
|
||||||
|
public static final String TABLE_PREFIX = "st_";
|
||||||
|
}
|
Reference in New Issue
Block a user