<?php

namespace Database\Factories;

use App\Models\CredencialCliente;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CredencialCliente>
 */
class CredencialClienteFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = CredencialCliente::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'contra' => Hash::make('password'),
            'correo' => $this->faker->unique()->safeEmail(),
            'token' => null,
            'fecha_hora' => null,
        ];
    }
}
