<?php

namespace Database\Factories;

use App\Models\Episode;
use App\Models\Playlist;
use App\Models\PlaylistEpisode;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<PlaylistEpisode>
 */
class PlaylistEpisodeFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'playlist_id' => Playlist::factory(),
            'episode_id' => Episode::factory(),
            'position' => $this->faker->numberBetween(1, 1000),
        ];
    }
}
