docs:논리적 관계 문서 갱신 (esign, materialInputs 추가)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2026-02-11 18:03:33
|
||||
> **자동 생성**: 2026-02-12 20:26:02
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -283,6 +283,32 @@ ### document_template_section_items
|
||||
|
||||
- **section()**: belongsTo → `document_template_sections`
|
||||
|
||||
### esign_audit_logs
|
||||
**모델**: `App\Models\ESign\EsignAuditLog`
|
||||
|
||||
- **contract()**: belongsTo → `esign_contracts`
|
||||
- **signer()**: belongsTo → `esign_signers`
|
||||
|
||||
### esign_contracts
|
||||
**모델**: `App\Models\ESign\EsignContract`
|
||||
|
||||
- **creator()**: belongsTo → `users`
|
||||
- **signers()**: hasMany → `esign_signers`
|
||||
- **signFields()**: hasMany → `esign_sign_fields`
|
||||
- **auditLogs()**: hasMany → `esign_audit_logs`
|
||||
|
||||
### esign_sign_fields
|
||||
**모델**: `App\Models\ESign\EsignSignField`
|
||||
|
||||
- **contract()**: belongsTo → `esign_contracts`
|
||||
- **signer()**: belongsTo → `esign_signers`
|
||||
|
||||
### esign_signers
|
||||
**모델**: `App\Models\ESign\EsignSigner`
|
||||
|
||||
- **contract()**: belongsTo → `esign_contracts`
|
||||
- **signFields()**: hasMany → `esign_sign_fields`
|
||||
|
||||
### estimates
|
||||
**모델**: `App\Models\Estimate\Estimate`
|
||||
|
||||
@@ -594,7 +620,6 @@ ### process_steps
|
||||
**모델**: `App\Models\ProcessStep`
|
||||
|
||||
- **process()**: belongsTo → `processes`
|
||||
- **documentTemplate()**: belongsTo → `document_templates`
|
||||
|
||||
### work_orders
|
||||
**모델**: `App\Models\Production\WorkOrder`
|
||||
@@ -610,8 +635,10 @@ ### work_orders
|
||||
- **items()**: hasMany → `work_order_items`
|
||||
- **issues()**: hasMany → `work_order_issues`
|
||||
- **stepProgress()**: hasMany → `work_order_step_progress`
|
||||
- **materialInputs()**: hasMany → `work_order_material_inputs`
|
||||
- **shipments()**: hasMany → `shipments`
|
||||
- **bendingDetail()**: hasOne → `work_order_bending_details`
|
||||
- **documents()**: morphMany → `documents`
|
||||
|
||||
### work_order_assignees
|
||||
**모델**: `App\Models\Production\WorkOrderAssignee`
|
||||
@@ -637,6 +664,16 @@ ### work_order_items
|
||||
- **workOrder()**: belongsTo → `work_orders`
|
||||
- **item()**: belongsTo → `items`
|
||||
- **sourceOrderItem()**: belongsTo → `order_items`
|
||||
- **materialInputs()**: hasMany → `work_order_material_inputs`
|
||||
|
||||
### work_order_material_inputs
|
||||
**모델**: `App\Models\Production\WorkOrderMaterialInput`
|
||||
|
||||
- **workOrder()**: belongsTo → `work_orders`
|
||||
- **workOrderItem()**: belongsTo → `work_order_items`
|
||||
- **stockLot()**: belongsTo → `stock_lots`
|
||||
- **item()**: belongsTo → `items`
|
||||
- **inputBy()**: belongsTo → `users`
|
||||
|
||||
### work_order_step_progress
|
||||
**모델**: `App\Models\Production\WorkOrderStepProgress`
|
||||
|
||||
Reference in New Issue
Block a user