From 002b6550def97165dd953bc7a482e972d7783f1a Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 24 Jan 2026 11:10:20 +0530 Subject: [PATCH] Added request characteristics model file --- app/Models/RequestCharacteristic.php | 99 ++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 app/Models/RequestCharacteristic.php diff --git a/app/Models/RequestCharacteristic.php b/app/Models/RequestCharacteristic.php new file mode 100644 index 0000000..40f7cd6 --- /dev/null +++ b/app/Models/RequestCharacteristic.php @@ -0,0 +1,99 @@ +belongsTo(Plant::class); + } + + public function item(): BelongsTo + { + return $this->belongsTo(Item::class); + } + + + public function machine(): BelongsTo + { + return $this->belongsTo(Machine::class); + } + + public function characteristicApproverMaster(): BelongsTo + { + return $this->belongsTo(CharacteristicApproverMaster::class); + } + + // public function approverName1() + // { + // return $this->belongsTo( + // CharacteristicApproverMaster::class, + // 'characteristic_approver_master_id' + // ); + // } + + // public function approverName2() + // { + // return $this->belongsTo( + // CharacteristicApproverMaster::class, + // 'characteristic_approver_master_id' + // ); + // } + + // public function approverName3() + // { + // return $this->belongsTo( + // CharacteristicApproverMaster::class, + // 'characteristic_approver_master_id' + // ); + // } + + public function approver() + { + return $this->belongsTo( + CharacteristicApproverMaster::class, + 'characteristic_approver_master_id' + ); + } + + + + + + +}