'decimal:2', 'cost' => 'integer', 'images' => 'array', 'attachments' => 'array', 'signature' => 'array', 'scheduled_at' => 'datetime', 'completed_at' => 'datetime', ]; protected static function booted(): void { } public function business() { return $this->belongsTo(Business::class); } public function equipment() { return $this->belongsTo(Equipment::class, 'equipment_id'); } public function project() { return $this->belongsTo(\Modules\Project\Entities\Project::class, 'project_id'); } public function productionLine() { return $this->belongsTo(ProductionLine::class, 'production_line_id'); } public function preventiveSchedule() { return $this->belongsTo(PreventiveSchedule::class, 'preventive_schedule_id'); } public function overhaul() { return $this->belongsTo(Overhaul::class, 'overhaul_id'); } public function rebuild() { return $this->belongsTo(RebuildProject::class, 'rebuild_id'); } public function requester() { return $this->belongsTo(User::class, 'requester_id'); } public function assignedTechnician() { return $this->belongsTo(User::class, 'assigned_technician_id'); } public function parts() { return $this->hasMany(WorkOrderPart::class, 'work_order_id'); } }