diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 926072e5c..0bdc1535e 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -82,4 +82,14 @@ class Plant extends Model { return $this->hasMany(GuardPatrolEntry::class, 'plant_id', 'id'); } + + public function workGroupMasters() + { + return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id'); + } + + // public function rejectReasons() + // { + // return $this->hasMany(RejectReason::class, 'plant_id', 'id'); + // } }