docs: [architecture] LOGICAL_RELATIONSHIPS 문서 보강
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2026-03-19 16:09:46
|
||||
> **자동 생성**: 2026-03-20 14:55:49
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -88,6 +88,16 @@ ### hometax_invoice_journals
|
||||
- **tenant()**: belongsTo → `tenants`
|
||||
- **invoice()**: belongsTo → `hometax_invoices`
|
||||
|
||||
### bending_items
|
||||
**모델**: `App\Models\BendingItem`
|
||||
|
||||
- **files()**: hasMany → `files`
|
||||
|
||||
### bending_models
|
||||
**모델**: `App\Models\BendingModel`
|
||||
|
||||
- **files()**: hasMany → `files`
|
||||
|
||||
### biddings
|
||||
**모델**: `App\Models\Bidding\Bidding`
|
||||
|
||||
@@ -563,6 +573,25 @@ ### material_receipts
|
||||
- **material()**: belongsTo → `materials`
|
||||
- **inspections()**: hasMany → `material_inspections`
|
||||
|
||||
### nonconforming_reports
|
||||
**모델**: `App\Models\Materials\NonconformingReport`
|
||||
|
||||
- **approval()**: belongsTo → `approvals`
|
||||
- **order()**: belongsTo → `orders`
|
||||
- **item()**: belongsTo → `items`
|
||||
- **department()**: belongsTo → `departments`
|
||||
- **creator()**: belongsTo → `users`
|
||||
- **actionManager()**: belongsTo → `users`
|
||||
- **relatedEmployee()**: belongsTo → `users`
|
||||
- **items()**: hasMany → `nonconforming_report_items`
|
||||
- **files()**: morphMany → `files`
|
||||
|
||||
### nonconforming_report_items
|
||||
**모델**: `App\Models\Materials\NonconformingReportItem`
|
||||
|
||||
- **report()**: belongsTo → `nonconforming_reports`
|
||||
- **item()**: belongsTo → `items`
|
||||
|
||||
### users
|
||||
**모델**: `App\Models\Members\User`
|
||||
|
||||
@@ -723,11 +752,6 @@ ### process_steps
|
||||
|
||||
- **process()**: belongsTo → `processes`
|
||||
|
||||
### bending_item_mappings
|
||||
**모델**: `App\Models\Production\BendingItemMapping`
|
||||
|
||||
- **item()**: belongsTo → `items`
|
||||
|
||||
### work_orders
|
||||
**모델**: `App\Models\Production\WorkOrder`
|
||||
|
||||
@@ -815,6 +839,7 @@ ### parts
|
||||
### prices
|
||||
**모델**: `App\Models\Products\Price`
|
||||
|
||||
- **item()**: belongsTo → `items`
|
||||
- **clientGroup()**: belongsTo → `client_groups`
|
||||
- **revisions()**: hasMany → `price_revisions`
|
||||
|
||||
@@ -1087,6 +1112,10 @@ ### cards
|
||||
- **creator()**: belongsTo → `users`
|
||||
- **updater()**: belongsTo → `users`
|
||||
|
||||
### condolence_expenses
|
||||
**모델**: `App\Models\Tenants\CondolenceExpense`
|
||||
|
||||
|
||||
### data_exports
|
||||
**모델**: `App\Models\Tenants\DataExport`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user