Added line_id foreign and Line BelongsTo relation
This commit is contained in:
@@ -13,6 +13,7 @@ class QualityValidation extends Model
|
|||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'sticker_master_id',
|
'sticker_master_id',
|
||||||
'plant_id',
|
'plant_id',
|
||||||
|
'line_id',
|
||||||
'production_order',
|
'production_order',
|
||||||
'serial_number_motor',
|
'serial_number_motor',
|
||||||
'serial_number_pump',
|
'serial_number_pump',
|
||||||
@@ -48,4 +49,9 @@ class QualityValidation extends Model
|
|||||||
{
|
{
|
||||||
return $this->belongsTo(Plant::class);
|
return $this->belongsTo(Plant::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function line(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Line::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user