From b2cc05430972e1e512be8d715134587a7b086992 Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 21 Dec 2025 03:28:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[models]=20Tenants=20=EB=AA=A8=EB=8D=B8?= =?UTF-8?q?=20=EA=B4=80=EA=B3=84=20=EA=B2=BD=EB=A1=9C=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Client 관계: App\Models\Tenants\Client → App\Models\Orders\Client - Deposit, Withdrawal, Sale, Purchase 모델 수정 - User 관계: App\Models\User → App\Models\Members\User - Deposit, Withdrawal, Sale, Purchase, TaxInvoice, BarobillSetting, AiReport 모델 수정 Finance Deposits CRUD Test 통과 확인 (7/7 SUCCESS) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/Models/Tenants/AiReport.php | 2 +- app/Models/Tenants/BarobillSetting.php | 4 ++-- app/Models/Tenants/Deposit.php | 4 ++-- app/Models/Tenants/Purchase.php | 4 ++-- app/Models/Tenants/Sale.php | 4 ++-- app/Models/Tenants/TaxInvoice.php | 4 ++-- app/Models/Tenants/Withdrawal.php | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Models/Tenants/AiReport.php b/app/Models/Tenants/AiReport.php index d50785a..86f63db 100644 --- a/app/Models/Tenants/AiReport.php +++ b/app/Models/Tenants/AiReport.php @@ -73,7 +73,7 @@ class AiReport extends Model */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/BarobillSetting.php b/app/Models/Tenants/BarobillSetting.php index 8dbd0cc..45ad09e 100644 --- a/app/Models/Tenants/BarobillSetting.php +++ b/app/Models/Tenants/BarobillSetting.php @@ -83,7 +83,7 @@ public function tenant(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** @@ -91,7 +91,7 @@ public function creator(): BelongsTo */ public function updater(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'updated_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'updated_by'); } // ========================================================================= diff --git a/app/Models/Tenants/Deposit.php b/app/Models/Tenants/Deposit.php index 69ee158..6f62790 100644 --- a/app/Models/Tenants/Deposit.php +++ b/app/Models/Tenants/Deposit.php @@ -51,7 +51,7 @@ class Deposit extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -67,7 +67,7 @@ public function bankAccount(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/Purchase.php b/app/Models/Tenants/Purchase.php index 4f4ed37..8920277 100644 --- a/app/Models/Tenants/Purchase.php +++ b/app/Models/Tenants/Purchase.php @@ -49,7 +49,7 @@ class Purchase extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -65,7 +65,7 @@ public function withdrawal(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/Sale.php b/app/Models/Tenants/Sale.php index b9c980a..d285973 100644 --- a/app/Models/Tenants/Sale.php +++ b/app/Models/Tenants/Sale.php @@ -52,7 +52,7 @@ class Sale extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -68,7 +68,7 @@ public function deposit(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** diff --git a/app/Models/Tenants/TaxInvoice.php b/app/Models/Tenants/TaxInvoice.php index c3c7f8f..3f2ce19 100644 --- a/app/Models/Tenants/TaxInvoice.php +++ b/app/Models/Tenants/TaxInvoice.php @@ -162,7 +162,7 @@ public function reference(): MorphTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /** @@ -170,7 +170,7 @@ public function creator(): BelongsTo */ public function updater(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'updated_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'updated_by'); } // ========================================================================= diff --git a/app/Models/Tenants/Withdrawal.php b/app/Models/Tenants/Withdrawal.php index 7d5e1c4..9b3a84a 100644 --- a/app/Models/Tenants/Withdrawal.php +++ b/app/Models/Tenants/Withdrawal.php @@ -51,7 +51,7 @@ class Withdrawal extends Model */ public function client(): BelongsTo { - return $this->belongsTo(Client::class); + return $this->belongsTo(\App\Models\Orders\Client::class); } /** @@ -67,7 +67,7 @@ public function bankAccount(): BelongsTo */ public function creator(): BelongsTo { - return $this->belongsTo(\App\Models\User::class, 'created_by'); + return $this->belongsTo(\App\Models\Members\User::class, 'created_by'); } /**