'datetime', 'scheduled_end' => 'datetime', ]; public function business() { return $this->belongsTo(Business::class); } public function workOrder() { return $this->belongsTo(WorkOrder::class, 'work_order_id'); } public function preventiveSchedule() { return $this->belongsTo(PreventiveSchedule::class, 'preventive_schedule_id'); } public function technician() { return $this->belongsTo(User::class, 'technician_id'); } }