diff --git a/app/Models/Equipment/Equipment.php b/app/Models/Equipment/Equipment.php index dadf480..6e79035 100644 --- a/app/Models/Equipment/Equipment.php +++ b/app/Models/Equipment/Equipment.php @@ -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 diff --git a/app/Models/Equipment/EquipmentInspection.php b/app/Models/Equipment/EquipmentInspection.php index b8c7e33..3bddd46 100644 --- a/app/Models/Equipment/EquipmentInspection.php +++ b/app/Models/Equipment/EquipmentInspection.php @@ -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 diff --git a/app/Models/Equipment/EquipmentRepair.php b/app/Models/Equipment/EquipmentRepair.php index 60733ed..6f3cbec 100644 --- a/app/Models/Equipment/EquipmentRepair.php +++ b/app/Models/Equipment/EquipmentRepair.php @@ -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'); } }