From 72ba1c560b2a275363ccdc77dc23181c7831fcf9 Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 21 Dec 2025 16:08:01 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EB=AA=A8=EB=8D=B8=20=EA=B4=80=EA=B3=84?= =?UTF-8?q?=20=EB=AC=B8=EC=84=9C=20=EC=9E=90=EB=8F=99=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - creator/updater/client 관계 추가 반영 - AiReport, BarobillSetting, Deposit, Purchase, Sale 등 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- LOGICAL_RELATIONSHIPS.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/LOGICAL_RELATIONSHIPS.md b/LOGICAL_RELATIONSHIPS.md index a39a82b..b3999d1 100644 --- a/LOGICAL_RELATIONSHIPS.md +++ b/LOGICAL_RELATIONSHIPS.md @@ -1,6 +1,6 @@ # 논리적 데이터베이스 관계 문서 -> **자동 생성**: 2025-12-20 22:27:54 +> **자동 생성**: 2025-12-21 16:03:09 > **소스**: Eloquent 모델 관계 분석 ## 📊 모델별 관계 현황 @@ -415,6 +415,7 @@ ### quote_revisions ### ai_reports **모델**: `App\Models\Tenants\AiReport` +- **creator()**: belongsTo → `users` ### approvals **모델**: `App\Models\Tenants\Approval` @@ -464,6 +465,8 @@ ### barobill_settings **모델**: `App\Models\Tenants\BarobillSetting` - **tenant()**: belongsTo → `tenants` +- **creator()**: belongsTo → `users` +- **updater()**: belongsTo → `users` ### cards **모델**: `App\Models\Tenants\Card` @@ -490,7 +493,9 @@ ### departments ### deposits **모델**: `App\Models\Tenants\Deposit` +- **client()**: belongsTo → `clients` - **bankAccount()**: belongsTo → `bank_accounts` +- **creator()**: belongsTo → `users` ### leaves **모델**: `App\Models\Tenants\Leave` @@ -543,12 +548,16 @@ ### plans ### purchases **모델**: `App\Models\Tenants\Purchase` +- **client()**: belongsTo → `clients` - **withdrawal()**: belongsTo → `withdrawals` +- **creator()**: belongsTo → `users` ### sales **모델**: `App\Models\Tenants\Sale` +- **client()**: belongsTo → `clients` - **deposit()**: belongsTo → `deposits` +- **creator()**: belongsTo → `users` ### setting_field_defs **모델**: `App\Models\Tenants\SettingFieldDef` @@ -571,6 +580,8 @@ ### subscriptions ### tax_invoices **모델**: `App\Models\Tenants\TaxInvoice` +- **creator()**: belongsTo → `users` +- **updater()**: belongsTo → `users` - **reference()**: morphTo → `(Polymorphic)` ### tenants @@ -615,7 +626,9 @@ ### tenant_user_profiles ### withdrawals **모델**: `App\Models\Tenants\Withdrawal` +- **client()**: belongsTo → `clients` - **bankAccount()**: belongsTo → `bank_accounts` +- **creator()**: belongsTo → `users` ### user_invitations **모델**: `App\Models\UserInvitation`