Added production characteristics models in all related model files
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled
This commit is contained in:
@@ -74,6 +74,11 @@ class Item extends Model
|
|||||||
return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id');
|
return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productionCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductionCharacteristic::class, 'item_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function weightValidations()
|
public function weightValidations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(WeightValidation::class);
|
return $this->hasMany(WeightValidation::class);
|
||||||
|
|||||||
@@ -71,6 +71,11 @@ class Line extends Model
|
|||||||
return $this->hasMany(CharacteristicValue::class);
|
return $this->hasMany(CharacteristicValue::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productionCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductionCharacteristic::class);
|
||||||
|
}
|
||||||
|
|
||||||
public function workGroup1()
|
public function workGroup1()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(WorkGroupMaster::class, 'work_group1_id', 'id');
|
return $this->belongsTo(WorkGroupMaster::class, 'work_group1_id', 'id');
|
||||||
|
|||||||
@@ -53,6 +53,11 @@ class Machine extends Model
|
|||||||
return $this->hasMany(RequestCharacteristic::class, 'machine_id', 'id');
|
return $this->hasMany(RequestCharacteristic::class, 'machine_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productionCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductionCharacteristic::class, 'machine_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function testingPanelReadings()
|
public function testingPanelReadings()
|
||||||
{
|
{
|
||||||
return $this->hasMany(TestingPanelReading::class);
|
return $this->hasMany(TestingPanelReading::class);
|
||||||
|
|||||||
@@ -133,6 +133,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(RequestCharacteristic::class, 'plant_id', 'id');
|
return $this->hasMany(RequestCharacteristic::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productionCharacteristics()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductionCharacteristic::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function users()
|
public function users()
|
||||||
{
|
{
|
||||||
return $this->hasMany(User::class, 'plant_id', 'id');
|
return $this->hasMany(User::class, 'plant_id', 'id');
|
||||||
|
|||||||
Reference in New Issue
Block a user