From 0c04910049e9ed91dc4303d0441c910bf94e49c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 20 Mar 2026 15:16:01 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20[architecture]=20LOGICAL=5FRELATIONSHIP?= =?UTF-8?q?S=20=EB=AC=B8=EC=84=9C=20=EB=B3=B4=EA=B0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LOGICAL_RELATIONSHIPS.md | 41 ++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/LOGICAL_RELATIONSHIPS.md b/LOGICAL_RELATIONSHIPS.md index 6174ca53..ee89c1f7 100644 --- a/LOGICAL_RELATIONSHIPS.md +++ b/LOGICAL_RELATIONSHIPS.md @@ -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`