'date', 'quantity' => 'decimal:3', 'health_before' => 'decimal:2', 'health_after' => 'decimal:2', ]; 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 equipmentPart() { return $this->belongsTo(EquipmentPart::class, 'equipment_part_id'); } public function sparePart() { return $this->belongsTo(SparePart::class, 'spare_part_id'); } public function performer() { return $this->belongsTo(User::class, 'performed_by'); } public function serviceRecord() { return $this->belongsTo(ServiceRecord::class, 'service_record_id'); } }