<?php

namespace Database\Factories;

use App\Enums\PeopleMessageActions;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\PeopleMessage>
 */
class PeopleMessageFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'caller_phone_number' => $this->faker->numerify('09#########'),
            'date' => $this->faker->date(),
            'voice' => $this->faker->name,
            'review_duration' => $this->faker->numberBetween(30, 60),
            'listen_at' => $this->faker->dateTime,
            'is_listen' => $this->faker->boolean(),
            'action_id' => $this->faker->randomElement([PeopleMessageActions::ADAM_NIAZ_BE_SABT_MOSHKEL_AVAREZI->value, PeopleMessageActions::SABT_SAVANEH_MOSHKEL_RAH->value]),
            'action_name' => $this->faker->word(),
            'description' => $this->faker->text(),
            'savaneh_id' => $this->faker->randomElement([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
        ];
    }
}
