<?php

namespace Database\Factories;

use App\Models\Department;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Department>
 */
class DepartmentFactory extends Factory
{
    protected $model = Department::class;

    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => $this->faker->unique()->randomElement([
                'Lima',
                'Arequipa',
                'Cusco',
                'Piura',
                'La Libertad',
                'Lambayeque',
                'Junín',
                'Áncash',
                'Loreto',
                'Puno',
                'Cajamarca',
                'Ica',
                'San Martín',
                'Huánuco',
                'Ucayali',
            ]),
        ];
    }
}
