<?php

namespace Database\Factories;

use App\Models\Pouzivatel\PouzivatelStavEnum;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * Class PouzivatelFactory
 */
class PouzivatelFactory extends Factory
{
    public function definition(): array
    {
        $meno = $this->faker->firstName();
        $priezvisko = $this->faker->lastName();

        return [
            'meno' => $meno,
            'priezvisko' => $priezvisko,
            'telefon' => $this->faker->phoneNumber(),
            'email' => $this->faker->email(),
            'cele_meno' => sprintf('%s %s', $meno, $priezvisko),
            'cele_meno_prve_priezvisko' => sprintf('%s %s', $priezvisko, $meno),
            'stav' => $this->faker->randomElement(PouzivatelStavEnum::cases()),
            'login' => $this->faker->userName(),
            'notification_token' => null,
            'password' => $this->faker->password(),
            'datum_posledneho_prihlasenia' => $this->faker->dateTime(),
        ];
    }
}
