diff --git a/app/Models/ProductionCharacteristic.php b/app/Models/ProductionCharacteristic.php new file mode 100644 index 0000000..d065af5 --- /dev/null +++ b/app/Models/ProductionCharacteristic.php @@ -0,0 +1,56 @@ + 'array', + ]; + + protected $fillable = [ + 'plant_id', + 'line_id', + 'item_id', + 'machine_id', + 'production_order', + 'serial_number', + 'observed_value', + 'characteristic_name', + 'status', + 'inspection_status', + 'inspection_lot_number', + 'remark', + 'result', + 'created_at', + 'updated_at', + 'created_by', + 'updated_by', + ]; + + public function plant(): BelongsTo + { + return $this->belongsTo(Plant::class); + } + + public function line(): BelongsTo + { + return $this->belongsTo(Line::class); + } + + public function item(): BelongsTo + { + return $this->belongsTo(Item::class); + } + + public function machine(): BelongsTo + { + return $this->belongsTo(Machine::class); + } +}