feat: ItemMaster 데이터베이스 구조 구축 (9개 테이블)
- 마이그레이션 9개 생성 (unit_options, section_templates, item_master_fields, item_pages, item_sections, item_fields, item_bom_items, custom_tabs, tab_columns) - Eloquent 모델 9개 구현 (ItemMaster 네임스페이스) - ItemMasterSeeder 작성 및 테스트 데이터 생성 주요 특징: - Multi-tenant 지원 (BelongsToTenant trait) - Soft Delete 적용 (deleted_at, deleted_by) - 감사 로그 지원 (created_by, updated_by) - JSON 필드로 동적 속성 지원 (display_condition, validation_rules, options, properties) - FK 제약조건 및 Composite Index 설정 - 계층 구조 (ItemPage → ItemSection → ItemField/ItemBomItem) SAM API Development Rules 준수
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2025-11-17 13:00:34
|
||||
> **자동 생성**: 2025-11-20 16:28:56
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -123,6 +123,38 @@ ### folders
|
||||
**모델**: `App\Models\Folder`
|
||||
|
||||
|
||||
### custom_tabs
|
||||
**모델**: `App\Models\ItemMaster\CustomTab`
|
||||
|
||||
- **columnSetting()**: hasOne → `tab_columns`
|
||||
|
||||
### item_bom_items
|
||||
**모델**: `App\Models\ItemMaster\ItemBomItem`
|
||||
|
||||
- **section()**: belongsTo → `item_sections`
|
||||
|
||||
### item_fields
|
||||
**모델**: `App\Models\ItemMaster\ItemField`
|
||||
|
||||
- **section()**: belongsTo → `item_sections`
|
||||
|
||||
### item_pages
|
||||
**모델**: `App\Models\ItemMaster\ItemPage`
|
||||
|
||||
- **sections()**: hasMany → `item_sections`
|
||||
|
||||
### item_sections
|
||||
**모델**: `App\Models\ItemMaster\ItemSection`
|
||||
|
||||
- **page()**: belongsTo → `item_pages`
|
||||
- **fields()**: hasMany → `item_fields`
|
||||
- **bomItems()**: hasMany → `item_bom_items`
|
||||
|
||||
### tab_columns
|
||||
**모델**: `App\Models\ItemMaster\TabColumn`
|
||||
|
||||
- **tab()**: belongsTo → `custom_tabs`
|
||||
|
||||
### main_requests
|
||||
**모델**: `App\Models\MainRequest`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user