<?php

namespace Database\Factories;

use App\Models\ClassSession;
use App\Models\Course;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<ClassSession>
 */
class ClassSessionFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'course_id' => Course::factory(),
            'session_number' => fake()->unique(true)->numberBetween(1, 16),
            'date' => fake()->date(),
            'start_time' => '08:00',
            'end_time' => '10:00',
        ];
    }
}
