mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 08:46:23 +00:00
Merge pull request #14 from ktds-dg0501/exec/participation
participation 실행프로파일 수정
This commit is contained in:
commit
429f737066
@ -43,7 +43,7 @@
|
||||
</option>
|
||||
<option name="taskNames">
|
||||
<list>
|
||||
<option value="participation-service:bootRun" />
|
||||
<option value=":participation-service:bootRun" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="vmOptions" />
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<entry key="DB_PASSWORD" value="Hi5Jessica!" />
|
||||
<entry key="DB_PORT" value="5432" />
|
||||
<entry key="DB_USERNAME" value="eventuser" />
|
||||
<entry key="DDL_AUTO" value="validate" />
|
||||
<entry key="DDL_AUTO" value="update" />
|
||||
<entry key="JWT_EXPIRATION" value="86400000" />
|
||||
<entry key="JWT_SECRET" value="kt-event-marketing-secret-key-for-development-only-change-in-production" />
|
||||
<entry key="KAFKA_BOOTSTRAP_SERVERS" value="20.249.182.13:9095,4.217.131.59:9095" />
|
||||
@ -22,7 +22,7 @@
|
||||
</map>
|
||||
</option>
|
||||
<option name="executionName" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$/participation-service" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="externalSystemIdString" value="GRADLE" />
|
||||
<option name="scriptParameters" value="" />
|
||||
<option name="taskDescriptions">
|
||||
@ -30,7 +30,7 @@
|
||||
</option>
|
||||
<option name="taskNames">
|
||||
<list>
|
||||
<option value="participation-service:bootRun" />
|
||||
<option value=":participation-service:bootRun" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="vmOptions" />
|
||||
|
||||
14
participation-service/fix-indexes.sql
Normal file
14
participation-service/fix-indexes.sql
Normal file
@ -0,0 +1,14 @@
|
||||
-- participation-service 인덱스 중복 문제 해결 스크립트
|
||||
-- 실행 방법: psql -h 4.230.72.147 -U eventuser -d participationdb -f fix-indexes.sql
|
||||
|
||||
-- 기존 중복 인덱스 삭제 (존재하는 경우만)
|
||||
DROP INDEX IF EXISTS idx_event_id;
|
||||
DROP INDEX IF EXISTS idx_event_phone;
|
||||
|
||||
-- 새로운 고유 인덱스는 Hibernate가 자동 생성하므로 별도 생성 불필요
|
||||
-- 다음 서비스 시작 시 자동으로 생성됩니다:
|
||||
-- - idx_draw_log_event_id (draw_logs 테이블)
|
||||
-- - idx_participant_event_id (participants 테이블)
|
||||
-- - idx_participant_event_phone (participants 테이블)
|
||||
|
||||
COMMIT;
|
||||
@ -14,7 +14,7 @@ import lombok.*;
|
||||
@Entity
|
||||
@Table(name = "draw_logs",
|
||||
indexes = {
|
||||
@Index(name = "idx_event_id", columnList = "event_id")
|
||||
@Index(name = "idx_draw_log_event_id", columnList = "event_id")
|
||||
}
|
||||
)
|
||||
@Getter
|
||||
|
||||
@ -13,8 +13,8 @@ import lombok.*;
|
||||
@Entity
|
||||
@Table(name = "participants",
|
||||
indexes = {
|
||||
@Index(name = "idx_event_id", columnList = "event_id"),
|
||||
@Index(name = "idx_event_phone", columnList = "event_id, phone_number")
|
||||
@Index(name = "idx_participant_event_id", columnList = "event_id"),
|
||||
@Index(name = "idx_participant_event_phone", columnList = "event_id, phone_number")
|
||||
},
|
||||
uniqueConstraints = {
|
||||
@UniqueConstraint(name = "uk_event_phone", columnNames = {"event_id", "phone_number"})
|
||||
|
||||
@ -51,7 +51,7 @@ spring:
|
||||
|
||||
# JWT 설정
|
||||
jwt:
|
||||
secret: ${JWT_SECRET:kt-event-marketing-secret-key-for-development-only-change-in-production}
|
||||
secret: ${JWT_SECRET:dev-jwt-secret-key-for-development-only}
|
||||
expiration: ${JWT_EXPIRATION:86400000}
|
||||
|
||||
# 서버 설정
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user