'datetime', ]; public function scopeForBusiness($query, int $businessId) { return $query->where('business_id', $businessId); } public function markCompleted(string $filePath): void { $this->update([ 'status' => 'completed', 'file_path' => $filePath, 'completed_at' => now(), ]); } public function markFailed(): void { $this->update([ 'status' => 'failed', 'completed_at' => now(), ]); } }