chore: 논리적 관계 문서 및 글로벌 카테고리 마이그레이션 추가

- LOGICAL_RELATIONSHIPS.md 업데이트
- create_global_categories_table 마이그레이션 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-29 01:12:40 +09:00
parent 3fce54b7d4
commit 90bcfaf268
2 changed files with 148 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# 논리적 데이터베이스 관계 문서
> **자동 생성**: 2026-01-26 22:07:37
> **자동 생성**: 2026-01-29 00:51:16
> **소스**: Eloquent 모델 관계 분석
## 📊 모델별 관계 현황
@@ -194,6 +194,35 @@ ### model_versions
- **model()**: belongsTo → `models`
- **bomTemplates()**: hasMany → `bom_templates`
### documents
**모델**: `App\Models\Documents\Document`
- **creator()**: belongsTo → `users`
- **updater()**: belongsTo → `users`
- **approvals()**: hasMany → `document_approvals`
- **data()**: hasMany → `document_data`
- **attachments()**: hasMany → `document_attachments`
- **linkable()**: morphTo → `(Polymorphic)`
### document_approvals
**모델**: `App\Models\Documents\DocumentApproval`
- **document()**: belongsTo → `documents`
- **user()**: belongsTo → `users`
- **creator()**: belongsTo → `users`
### document_attachments
**모델**: `App\Models\Documents\DocumentAttachment`
- **document()**: belongsTo → `documents`
- **file()**: belongsTo → `files`
- **creator()**: belongsTo → `users`
### document_datas
**모델**: `App\Models\Documents\DocumentData`
- **document()**: belongsTo → `documents`
### estimates
**모델**: `App\Models\Estimate\Estimate`