diff --git a/src/main/java/com/bio/bio_backend/domain/base/member/entity/Member.java b/src/main/java/com/bio/bio_backend/domain/base/member/entity/Member.java index f265c83..86d0f8b 100644 --- a/src/main/java/com/bio/bio_backend/domain/base/member/entity/Member.java +++ b/src/main/java/com/bio/bio_backend/domain/base/member/entity/Member.java @@ -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") } diff --git a/src/main/java/com/bio/bio_backend/global/constants/AppConstants.java b/src/main/java/com/bio/bio_backend/global/constants/AppConstants.java new file mode 100644 index 0000000..12bb79b --- /dev/null +++ b/src/main/java/com/bio/bio_backend/global/constants/AppConstants.java @@ -0,0 +1,5 @@ +package com.bio.bio_backend.global.constants; + +public class AppConstants { + public static final String TABLE_PREFIX = "st_"; +} \ No newline at end of file