fix: [equipment] User 모델 네임스페이스 경로 수정

- App\Models\User → App\Models\Members\User 경로 일괄 수정
- Equipment(manager, subManager), EquipmentInspection(inspector), EquipmentRepair(repairer)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-03-12 19:03:31 +09:00
parent 08582261db
commit 2c4f5ee91d
3 changed files with 4 additions and 4 deletions

View File

@@ -72,12 +72,12 @@ public function setOption(string $key, mixed $value): self
public function manager(): BelongsTo
{
return $this->belongsTo(\App\Models\User::class, 'manager_id');
return $this->belongsTo(\App\Models\Members\User::class, 'manager_id');
}
public function subManager(): BelongsTo
{
return $this->belongsTo(\App\Models\User::class, 'sub_manager_id');
return $this->belongsTo(\App\Models\Members\User::class, 'sub_manager_id');
}
public function canInspect(?int $userId = null): bool

View File

@@ -33,7 +33,7 @@ public function equipment(): BelongsTo
public function inspector(): BelongsTo
{
return $this->belongsTo(\App\Models\User::class, 'inspector_id');
return $this->belongsTo(\App\Models\Members\User::class, 'inspector_id');
}
public function details(): HasMany

View File

@@ -57,6 +57,6 @@ public function equipment(): BelongsTo
public function repairer(): BelongsTo
{
return $this->belongsTo(\App\Models\User::class, 'repaired_by');
return $this->belongsTo(\App\Models\Members\User::class, 'repaired_by');
}
}