<?php

namespace Database\Factories;

use App\Enums\Day;
use App\Models\OpeningHour;
use Illuminate\Database\Eloquent\Factories\Factory;

class OpeningHourFactory extends Factory
{
    protected $model = OpeningHour::class;

    public function definition(): array
    {
        return [
            'day' => $this->faker->randomElement(Day::cases())->value,
            'open_time' => $this->faker->time('H:i'),
            'close_time' => $this->faker->time('H:i'),
        ];
    }
}
