<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Semester>
 */
class SemesterFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'semester' => $this->faker->randomElement(['Ganjil', 'Genap']),
            'tahun_ajaran' => $this->faker->year() . '/' . ($this->faker->year() + 1),
            'is_active' => $this->faker->boolean(),
        ];
    }
}
