diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 389c2e1..926072e 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -62,4 +62,24 @@ class Plant extends Model { return $this->hasMany(TestingPanelReading::class); } + + public function guardNames() + { + return $this->hasMany(GuardName::class, 'plant_id', 'id'); + } + + public function checkPointNames() + { + return $this->hasMany(CheckPointName::class, 'plant_id', 'id'); + } + + public function checkPointTimes() + { + return $this->hasMany(CheckPointTime::class, 'plant_id', 'id'); + } + + public function guardPatrolEntries() + { + return $this->hasMany(GuardPatrolEntry::class, 'plant_id', 'id'); + } }