'datetime', 'planned_end' => 'datetime', 'quantity' => 'decimal:4', 'duration_hours' => 'decimal:2', ]; public function scheduleRun() { return $this->belongsTo(ScheduleRun::class, 'schedule_run_id'); } public function resource() { return $this->belongsTo(CapacityResource::class, 'resource_id'); } public function workOrder() { return $this->belongsTo(\Modules\IndustrialEngineering\Models\ManufacturingWorkOrder::class, 'ie_work_order_id'); } }