fix: ApiResponse 4xx 에러에서 스택 트레이스 제외 및 Controller 메서드 수정
- 4xx 클라이언트 에러에는 스택 트레이스 제외 - 5xx 서버 에러에만 debug 모드에서 스택 트레이스 포함 - 10개 Controller의 ApiResponse::handle() → success() 수정 - BankAccountController, SiteController, CardController - DepositController, WithdrawalController, SaleController - PurchaseController, PayrollController, ReportController - WorkSettingController - import 경로 수정 (App\Http\Responses → App\Helpers)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 논리적 데이터베이스 관계 문서
|
||||
|
||||
> **자동 생성**: 2025-12-18 11:37:56
|
||||
> **자동 생성**: 2025-12-18 15:37:24
|
||||
> **소스**: Eloquent 모델 관계 분석
|
||||
|
||||
## 📊 모델별 관계 현황
|
||||
@@ -347,6 +347,10 @@ ### quote_revisions
|
||||
- **quote()**: belongsTo → `quotes`
|
||||
- **reviser()**: belongsTo → `users`
|
||||
|
||||
### ai_reports
|
||||
**모델**: `App\Models\Tenants\AiReport`
|
||||
|
||||
|
||||
### approvals
|
||||
**모델**: `App\Models\Tenants\Approval`
|
||||
|
||||
@@ -391,6 +395,11 @@ ### bank_accounts
|
||||
- **creator()**: belongsTo → `users`
|
||||
- **updater()**: belongsTo → `users`
|
||||
|
||||
### barobill_settings
|
||||
**모델**: `App\Models\Tenants\BarobillSetting`
|
||||
|
||||
- **tenant()**: belongsTo → `tenants`
|
||||
|
||||
### cards
|
||||
**모델**: `App\Models\Tenants\Card`
|
||||
|
||||
@@ -425,6 +434,11 @@ ### leave_balances
|
||||
|
||||
- **user()**: belongsTo → `users`
|
||||
|
||||
### loans
|
||||
**모델**: `App\Models\Tenants\Loan`
|
||||
|
||||
- **withdrawal()**: belongsTo → `withdrawals`
|
||||
|
||||
### payments
|
||||
**모델**: `App\Models\Tenants\Payment`
|
||||
|
||||
@@ -483,6 +497,11 @@ ### subscriptions
|
||||
- **plan()**: belongsTo → `plans`
|
||||
- **payments()**: hasMany → `payments`
|
||||
|
||||
### tax_invoices
|
||||
**모델**: `App\Models\Tenants\TaxInvoice`
|
||||
|
||||
- **reference()**: morphTo → `(Polymorphic)`
|
||||
|
||||
### tenants
|
||||
**모델**: `App\Models\Tenants\Tenant`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user