<?php

namespace Database\Factories;

use App\Models\DiaDeAtencion;
use App\Models\HorarioReceso;
use Illuminate\Database\Eloquent\Factories\Factory;

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

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        $start = $this->faker->time('H:i:s', '12:00:00');
        $end = $this->faker->time('H:i:s', '14:00:00');

        return [
            'comienzo' => $start,
            'fin' => $end,
            'diadeatencion_id' => DiaDeAtencion::factory(),
        ];
    }
}
