diff --git a/app/Models/Item.php b/app/Models/Item.php index c23546e..14d2e14 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -134,4 +134,9 @@ class Item extends Model { return $this->hasMany(ProductionTemp::class, 'item_id', 'id'); } + + public function stickerOrder() + { + return $this->hasMany(StickerOrder::class, 'item_id', 'id'); + } } diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 96de552..f3fcedf 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -243,4 +243,10 @@ class Plant extends Model { return $this->hasMany(ProductionTemp::class, 'plant_id', 'id'); } + + public function stickerOrder() + { + return $this->hasMany(StickerOrder::class, 'plant_id', 'id'); + } + }