<?php

namespace Database\Factories;

use App\Models\User;
use App\Models\Visitor;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Visitor>
 */
class VisitorFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'method' => 'GET',
            'route' => 'home',
            'parameters' => [],
            'status' => 200,
            'ip' => fake()->ipv4(),
            'date' => now(),
            'counter' => 1,
        ];
    }
}
