<?php

namespace Database\Seeders;

use App\Enums\Semester;
use App\Models\AcademicTerm;
use Illuminate\Database\Seeder;

class AcademicTermSeeder extends Seeder
{
    public function run(): void
    {
        AcademicTerm::insert([
            [
                'academic_year' => '2026/2027',
                'semester' => Semester::odd->value,
                'start_date' => '2026-08-01',
                'end_date' => '2027-01-15',
                'is_active' => false,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'academic_year' => '2026/2027',
                'semester' => Semester::even->value,
                'start_date' => '2027-02-01',
                'end_date' => '2027-07-15',
                'is_active' => true,
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ]);
    }
}
