<?php

require __DIR__ . '/vendor/autoload.php';

$app = require_once __DIR__ . '/bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();

$uuid = '68c7b8f8-fdf0-4575-9cbc-3ab2b3544d8f';
$import = \App\Models\Import::where('uuid', $uuid)->first();

if ($import) {
    $import->status = 'failed';
    $import->save();
    echo "Import {$uuid} marked as failed\n";
    echo "Current status: {$import->status}\n";
} else {
    echo "Import not found\n";
}
