[회원 엔티티 및 데이터베이스 스키마 수정] - st_member 테이블에 user_id 인덱스 추가 및 Member 엔티티에서 고유 제약 조건을 인덱스로 변경

This commit is contained in:
2025-08-12 16:09:51 +09:00
parent d1bf1dd477
commit a8e1a15b1d
2 changed files with 6 additions and 4 deletions

View File

@@ -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);

View File

@@ -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 {