<?php

namespace Database\Factories;

use App\Models\BackupSet;
use App\Models\Tenant;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\RestoreRun>
 */
class RestoreRunFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'tenant_id' => Tenant::factory(),
            'backup_set_id' => BackupSet::factory(),
            'status' => 'completed',
            'is_dry_run' => false,
            'requested_items' => [],
            'preview' => [],
            'results' => [],
            'metadata' => [],
            'group_mapping' => null,
            'started_at' => now()->subHour(),
            'completed_at' => now(),
        ];
    }
}
