From 04eb933997151ecf2cb21fc2d2df7cb8e05cf496 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 5 Dec 2025 14:31:08 +0530 Subject: [PATCH] Added product characteristics model file --- app/Models/ProductCharacteristicsMaster.php | 60 +++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app/Models/ProductCharacteristicsMaster.php diff --git a/app/Models/ProductCharacteristicsMaster.php b/app/Models/ProductCharacteristicsMaster.php new file mode 100644 index 0000000..ecf6a3e --- /dev/null +++ b/app/Models/ProductCharacteristicsMaster.php @@ -0,0 +1,60 @@ +belongsTo(Plant::class); + } + + public function line(): BelongsTo + { + return $this->belongsTo(Line::class); + } + + public function workGroupMaster(): BelongsTo + { + return $this->belongsTo(WorkGroupMaster::class); + } + + public function machine(): BelongsTo + { + return $this->belongsTo(Machine::class); + } + // public function machine() + // { + // return $this->belongsTo(\App\Models\Machine::class, 'machine_id'); + // } + + public function item(): BelongsTo + { + return $this->belongsTo(Item::class); + } +} -- 2.49.1