<?php

namespace Database\Factories;

use App\Models\Service;
use Illuminate\Database\Eloquent\Factories\Factory;

class ServiceFactory extends Factory
{
    protected $model = Service::class;

    public function definition(): array
    {
        $date = $this->faker->dateTimeBetween('now', '+6 months');

        return [
            'cts_event_id' => (string) $this->faker->unique()->numberBetween(10000, 99999),
            'title' => $this->faker->sentence(4),
            'date' => $date,
            'preacher_name' => $this->faker->name(),
            'beamer_tech_name' => $this->faker->name(),
            'finalized_at' => $this->faker->optional()->dateTimeBetween('-2 weeks', 'now'),
            'last_synced_at' => $this->faker->dateTimeBetween('-2 days', 'now'),
            'cts_data' => [
                'id' => $this->faker->uuid(),
                'name' => $this->faker->sentence(3),
            ],
            'has_agenda' => true,
        ];
    }
}
