<?php

namespace Database\Factories;

use App\Models\Service;
use App\Models\ServiceSong;
use App\Models\Song;
use App\Models\SongArrangement;
use Illuminate\Database\Eloquent\Factories\Factory;

class ServiceSongFactory extends Factory
{
    protected $model = ServiceSong::class;

    public function definition(): array
    {
        return [
            'service_id' => Service::factory(),
            'song_id' => Song::factory(),
            'song_arrangement_id' => SongArrangement::factory(),
            'use_translation' => $this->faker->boolean(30),
            'order' => $this->faker->numberBetween(1, 10),
            'cts_song_name' => $this->faker->sentence(3),
            'cts_ccli_id' => $this->faker->optional()->numerify('######'),
            'matched_at' => $this->faker->optional()->dateTimeBetween('-2 weeks', 'now'),
            'request_sent_at' => $this->faker->optional()->dateTimeBetween('-2 weeks', 'now'),
        ];
    }
}
