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' + ); + } + + + + + + +}