kcg-ai-monitoring/backend/src/main/resources/db/migration
htlee a4e29629fc feat(detection): GEAR_IDENTITY_COLLISION 탐지 패턴 추가
동일 어구 이름이 서로 다른 MMSI 로 같은 5분 사이클에 동시 AIS 송출되는
공존 케이스를 신규 탐지 패턴으로 분리해 기록·분류한다. 부수 효과로
fleet_tracker.track_gear_identity 의 PK 충돌로 인한 사이클 실패도 해소.

Prediction
- algorithms/gear_identity.py: detect_gear_name_collisions + classify_severity
- fleet_tracker.py: 공존/교체 분기 분리, UPSERT helper, savepoint 점수 이전
- output/event_generator.py: run_gear_identity_collision_events 추가
- scheduler.py: track_gear_identity 직후 이벤트 승격 호출

Backend (domain/analysis)
- GearIdentityCollision 엔티티 + Repository(Specification+stats)
- GearIdentityCollisionService (@Transactional readOnly / @Auditable resolve)
- GearCollisionController /api/analysis/gear-collisions (list/stats/detail/resolve)
- GearCollisionResponse / StatsResponse / ResolveRequest (record)

DB
- V030__gear_identity_collision.sql: gear_identity_collisions 테이블
  + auth_perm_tree 엔트리(detection:gear-collision nav_sort=950) + 역할별 권한

Frontend
- shared/constants/gearCollisionStatuses.ts + catalogRegistry 등록
- services/gearCollisionApi.ts (list/stats/get/resolve)
- features/detection/GearCollisionDetection.tsx (PageContainer+Section+DataTable
  + 분류 액션 폼, design system SSOT 준수)
- componentRegistry + feature index + i18n detection.json / common.json(ko/en)
2026-04-17 06:53:12 +09:00
..
V001__auth_init.sql feat: Phase 3 - 자체 인증 + 트리 기반 RBAC + 감사로그 + 데모 계정 2026-04-07 09:29:52 +09:00
V002__perm_tree.sql feat: Phase 3 - 자체 인증 + 트리 기반 RBAC + 감사로그 + 데모 계정 2026-04-07 09:29:52 +09:00
V003__perm_seed.sql feat: Phase 2 - Spring Boot 백엔드 + DB 마이그레이션 초기화 2026-04-07 09:01:13 +09:00
V004__access_logs.sql feat: Phase 2 - Spring Boot 백엔드 + DB 마이그레이션 초기화 2026-04-07 09:01:13 +09:00
V005__parent_workflow.sql feat: Phase 2 - Spring Boot 백엔드 + DB 마이그레이션 초기화 2026-04-07 09:01:13 +09:00
V006__demo_accounts.sql feat: Phase 3 - 자체 인증 + 트리 기반 RBAC + 감사로그 + 데모 계정 2026-04-07 09:29:52 +09:00
V007__perm_tree_label_align.sql fix: 권한 트리 UX 개선 + 라벨 사이드바 일치 + EXPORT 가드 2026-04-07 10:33:29 +09:00
V008__code_master.sql feat: S1 마스터 데이터 + prediction 기반 DB 스키마 (V008~V013) 2026-04-07 11:49:26 +09:00
V009__gear_type_master.sql feat: S1 마스터 데이터 + prediction 기반 DB 스키마 (V008~V013) 2026-04-07 11:49:26 +09:00
V010__zone_polygon_master.sql feat: S1 마스터 데이터 + prediction 기반 DB 스키마 (V008~V013) 2026-04-07 11:49:26 +09:00
V011__vessel_permit_patrol.sql feat: S1 마스터 데이터 + prediction 기반 DB 스키마 (V008~V013) 2026-04-07 11:49:26 +09:00
V012__prediction_events_stats.sql fix: prediction_stats_monthly.stat_month CHAR(7) → DATE 타입 변경 2026-04-07 12:05:04 +09:00
V013__enforcement_operations.sql fix: prediction_stats_monthly.stat_month CHAR(7) → DATE 타입 변경 2026-04-07 12:05:04 +09:00
V014__fleet_prediction_tables.sql fix: prediction e2e — 누락 테이블 12개 + 컬럼 매핑 + NUMERIC precision 통합 수정 2026-04-07 15:00:29 +09:00
V015__fix_numeric_precision.sql fix: prediction e2e — 누락 테이블 12개 + 컬럼 매핑 + NUMERIC precision 통합 수정 2026-04-07 15:00:29 +09:00
V016__parent_workflow_columns.sql fix: prediction 5가지 이슈 수정 — 모든 파이프라인 정상 동작 2026-04-08 06:47:53 +09:00
V017__role_color_hex.sql feat(backend): Role.colorHex 추가 + V017 migration 2026-04-08 10:52:36 +09:00
V018__prediction_event_features.sql feat(backend): 워크플로우 연결 Step 1 — 백엔드 기반 확장 2026-04-09 10:43:53 +09:00
V019__llm_ops_perm.sql fix(frontend): 메뉴 중복 해소 + system-flow 노드 동기화 + V019 권한 트리 2026-04-09 12:05:35 +09:00
V020__menu_config.sql feat: 메뉴 DB SSOT 구조화 — auth_perm_tree 기반 메뉴·권한·i18n 통합 2026-04-09 15:54:04 +09:00
V021__menu_into_perm_tree.sql feat: 메뉴 DB SSOT 구조화 — auth_perm_tree 기반 메뉴·권한·i18n 통합 2026-04-09 15:54:04 +09:00
V022__perm_tree_i18n_labels.sql feat: 메뉴 DB SSOT 구조화 — auth_perm_tree 기반 메뉴·권한·i18n 통합 2026-04-09 15:54:04 +09:00
V023__perm_tree_sort_align.sql feat: 메뉴 DB SSOT 구조화 — auth_perm_tree 기반 메뉴·권한·i18n 통합 2026-04-09 15:54:04 +09:00
V024__flatten_perm_tree.sql feat: 메뉴 DB SSOT 구조화 — auth_perm_tree 기반 메뉴·권한·i18n 통합 2026-04-09 15:54:04 +09:00
V025__lgcns_mlops_menu.sql feat: LGCNS MLOps + AI 보안(SER-10) + AI Agent 보안(SER-11) 메뉴 추가 2026-04-13 10:51:05 +09:00
V026__data_retention_policy_menu.sql feat: 시스템관리 > 감사·보안에 데이터 보관·파기 정책(DAR-10) 메뉴 추가 2026-04-14 16:55:05 +09:00
V027__data_model_verification_menu.sql feat: 시스템관리 > 감사·보안에 데이터 모델 검증(DAR-11) 메뉴 추가 2026-04-14 16:55:05 +09:00
V028__performance_monitoring_menu.sql feat: 시스템관리 > 감사·보안에 성능 모니터링(PER-01~06) 메뉴 추가 2026-04-15 17:12:53 +09:00
V029__fishery_permit_cn.sql feat(prediction): DAR-03 탐지 로직 보강 + 한중어업협정 906척 레지스트리 적재 2026-04-16 07:43:24 +09:00
V030__gear_identity_collision.sql feat(detection): GEAR_IDENTITY_COLLISION 탐지 패턴 추가 2026-04-17 06:53:12 +09:00