feat: 자재 분류 시스템 개선 및 상세 테이블 추가
- 모든 자재 카테고리별 상세 테이블 생성 (fitting, valve, flange, bolt, gasket, instrument) - PIPE, FITTING, VALVE 분류 결과를 각 상세 테이블에 저장하는 로직 구현 - 프론트엔드 라우팅 정리 및 BOM 현황 페이지 기능 개선 - 자재확인 페이지 에러 처리 개선 TODO: FLANGE, BOLT, GASKET, INSTRUMENT 저장 로직 추가 필요
This commit is contained in:
@@ -81,6 +81,7 @@ CREATE TABLE materials (
|
||||
|
||||
-- 분류 신뢰도 및 검증
|
||||
classification_confidence DECIMAL(3,2), -- 0.00-1.00 분류 신뢰도
|
||||
classification_details JSONB, -- 분류 상세 정보 (JSON)
|
||||
is_verified BOOLEAN DEFAULT false, -- 사용자 검증 여부
|
||||
verified_by VARCHAR(100),
|
||||
verified_at TIMESTAMP,
|
||||
|
||||
8
database/init/02_add_classification_details.sql
Normal file
8
database/init/02_add_classification_details.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- classification_details 컬럼 추가 마이그레이션
|
||||
-- 생성일: 2025.01.27
|
||||
|
||||
-- materials 테이블에 classification_details 컬럼 추가
|
||||
ALTER TABLE materials ADD COLUMN IF NOT EXISTS classification_details JSONB;
|
||||
|
||||
-- 인덱스 추가 (JSONB 컬럼 검색 최적화)
|
||||
CREATE INDEX IF NOT EXISTS idx_materials_classification_details ON materials USING GIN (classification_details);
|
||||
Reference in New Issue
Block a user