시장 조사 llm 추가 및 파이프라인 정리, db 커넥션 풀 문제 처리
This commit is contained in:
1 parent
42e09ae2d1
commit
cda518c027
13 files changed
+328
-65
No files matched your search
@@ -179,3 +179,21 @@ CREATE INDEX IX_hospital_history_1
|
||||
CREATE INDEX IX_hospital_history_2
|
||||
ON hospital_history(analysis_run_id);
|
||||
|
||||
|
||||
-- market_analysis Table Create SQL
|
||||
CREATE TABLE market_analysis
|
||||
(
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`analysis_run_id` CHAR(36) NOT NULL,
|
||||
`analysis_type` VARCHAR(50) NOT NULL,
|
||||
`status` VARCHAR(20) NOT NULL DEFAULT 'start',
|
||||
`data` JSON NULL,
|
||||
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY UQ_market_analysis (analysis_run_id, analysis_type)
|
||||
);
|
||||
|
||||
-- Index 설정 SQL - market_analysis(analysis_run_id)
|
||||
CREATE INDEX IX_market_analysis_1
|
||||
ON market_analysis(analysis_run_id);
|
||||
|
||||
Reference in new issue
Block a user