From a8e1a15b1d57550838155d125df4a02533522d10 Mon Sep 17 00:00:00 2001 From: sohot8653 Date: Tue, 12 Aug 2025 16:09:51 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=9A=8C=EC=9B=90=20=EC=97=94=ED=8B=B0?= =?UTF-8?q?=ED=8B=B0=20=EB=B0=8F=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EB=B2=A0?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=20=EC=8A=A4=ED=82=A4=EB=A7=88=20=EC=88=98?= =?UTF-8?q?=EC=A0=95]=20-=20st=5Fmember=20=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=EC=97=90=20user=5Fid=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=B0=8F=20Member=20=EC=97=94=ED=8B=B0=ED=8B=B0?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EA=B3=A0=EC=9C=A0=20=EC=A0=9C=EC=95=BD=20?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=EC=9D=84=20=EC=9D=B8=EB=8D=B1=EC=8A=A4?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ddl/schema.sql | 6 ++++-- .../bio/bio_backend/domain/user/member/entity/Member.java | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ddl/schema.sql b/ddl/schema.sql index d298e83..271005d 100644 --- a/ddl/schema.sql +++ b/ddl/schema.sql @@ -11,6 +11,8 @@ password varchar(100) not null, user_id varchar(100) not null, refresh_token varchar(200), - primary key (oid), - constraint uk_member_user_id unique (user_id) + primary key (oid) ); + + create index idx_member_user_id + on st_member (user_id); diff --git a/src/main/java/com/bio/bio_backend/domain/user/member/entity/Member.java b/src/main/java/com/bio/bio_backend/domain/user/member/entity/Member.java index 2421ef6..e1ee717 100644 --- a/src/main/java/com/bio/bio_backend/domain/user/member/entity/Member.java +++ b/src/main/java/com/bio/bio_backend/domain/user/member/entity/Member.java @@ -18,8 +18,8 @@ import java.time.LocalDateTime; @Builder @Table( name = "st_member", - uniqueConstraints = { - @UniqueConstraint(name = "uk_member_user_id", columnNames = "user_id") + indexes = { + @Index(name = "idx_member_user_id", columnList = "user_id") } ) public class Member extends BaseEntity {