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`