<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Model;
use Faker\Generator as Faker;
use App\CalendarTemplate;

$factory->define(CalendarTemplate::class, function (Faker $faker) {
    return [
        "default_duration" => $faker->randomElement([29, 44, 59, 59, 59, 59, 59, 59, 59]),
        "time_between_wods" => $faker->randomElement([1]),
        "start_day_time" => $faker->dateTime->setTime($faker->numberBetween(5,7), 0, 0)->format("H:i:s"),
        "end_day_time" => $faker->dateTime->setTime($faker->numberBetween(19,21), 0, 0)->format("H:i:s"),
        "days" => $faker->randomElement([
            [1,2,3,4,5],
            [1,2,3,4,5,6],
            [1,2,4],
            [1,2,3,4,5,6,7],
            [1]
        ])
    ];
});
