diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 7b3d18e..58a6ed0 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -94,6 +94,11 @@ class Plant extends Model return $this->hasMany(PumpTestingEntry::class, 'plant_id', 'id'); } + public function pumpTestingResults() + { + return $this->hasMany(PumpTestingResult::class, 'plant_id', 'id'); + } + public function guardNames() { return $this->hasMany(GuardName::class, 'plant_id', 'id'); diff --git a/app/Models/PumpTestingMaster.php b/app/Models/PumpTestingMaster.php index 271624f..f67f348 100644 --- a/app/Models/PumpTestingMaster.php +++ b/app/Models/PumpTestingMaster.php @@ -59,4 +59,9 @@ class PumpTestingMaster extends Model { return $this->hasMany(PumpTestingEntry::class, 'pump_testing_master_id', 'id'); } + + public function pumpTestingResults() + { + return $this->hasMany(PumpTestingResult::class, 'pump_testing_master_id', 'id'); + } }