<?php

declare(strict_types=1);

namespace Database\Factories;

use App\Enums\ExportStatus;
use App\Models\ExportJob;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<ExportJob>
 */
class ExportJobFactory extends Factory
{
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'status' => ExportStatus::Pending,
            'filters' => [],
            'file_path' => null,
            'total_rows' => null,
            'processed_rows' => 0,
            'last_member_id' => 0,
            'error_message' => null,
            'expires_at' => now()->addDays(14),
        ];
    }
}
