diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 5fad1f9..99dcb01 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -63,6 +63,11 @@ class Plant extends Model return $this->hasMany(QualityValidation::class, 'plant_id', 'id'); } + public function motorTestingMasters() + { + return $this->hasMany(MotorTestingMaster::class, 'plant_id', 'id'); + } + public function testingPanelReadings() { return $this->hasMany(TestingPanelReading::class, 'plant_id', 'id');