From 8cee267f3668a36b73d79340de00d2507eebf3af Mon Sep 17 00:00:00 2001 From: sohot8653 Date: Mon, 25 Aug 2025 09:45:49 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=9A=8C=EC=9B=90=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0]=20Member=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=9D=98=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=EC=9D=84=20AppConstants.TABLE=5FPREFIX=EB=A5=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EC=97=AC=20=EB=8F=99=EC=A0=81=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=84=A4=EC=A0=95=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=ED=95=98=EA=B3=A0,=20AppConstants=20?= =?UTF-8?q?=ED=81=B4=EB=9E=98=EC=8A=A4=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EC=A0=91?= =?UTF-8?q?=EB=91=90=EC=82=AC=EB=A5=BC=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bio/bio_backend/domain/base/member/entity/Member.java | 3 ++- .../com/bio/bio_backend/global/constants/AppConstants.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/bio/bio_backend/global/constants/AppConstants.java 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