refactor: BP-MES Phase 1 하이브리드 구조 전환
- products 테이블: 6개 고정 필드 + attributes JSON - product_components 테이블: 수식/조건 + attributes JSON - tenant_stat_fields 테이블: 테넌트별 통계 필드 설정 - stat_snapshots 테이블: 통계 캐싱 - BP-MES CategoryFields Seeder: 제품/부품/절곡품 카테고리 필드 - BP-MES TenantStatFields Seeder: 통계 필드 설정 [변경 사항] 삭제: - 2025_11_13_120000_extend_products_table_for_bp_mes.php - 2025_11_13_120001_extend_product_components_table_for_bp_mes.php 추가: - 2025_11_14_000001_add_hybrid_fields_to_products_table.php - 2025_11_14_000002_add_attributes_to_product_components_table.php - 2025_11_14_000003_create_tenant_stat_fields_table.php - 2025_11_14_000004_create_stat_snapshots_table.php - BpMesCategoryFieldsSeeder.php - BpMesTenantStatFieldsSeeder.php [배경] 멀티테넌트 시스템의 유연성 확보를 위해 고정 필드를 최소화하고 동적 필드 시스템(category_fields + attributes JSON)으로 전환. 통계 성능을 위해 자주 조회하는 분류 필드(product_category, part_type)는 고정 컬럼으로 유지하고 인덱싱.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2025-11-14 08:41:17
|
||||
> **자동 생성**: 2025-11-14 10:55:53
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
|
||||
Reference in New Issue
Block a user