'decimal:4', 'good_quantity' => 'decimal:4', 'scrap_quantity' => 'decimal:4', 'recorded_at' => 'datetime', ]; public function workCenter() { return $this->belongsTo(WorkCenter::class, 'work_center_id'); } public function workOrder() { return $this->belongsTo(ManufacturingWorkOrder::class, 'ie_work_order_id'); } public function recordedBy() { return $this->belongsTo(User::class, 'recorded_by'); } }