<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('kelas', function (Blueprint $table) {
            $table->id();
            $table->string('nama_kelas');           // Nama kelas (X-IPA-1, XI-IPS-2, dst)
            $table->string('tingkat');              // Tingkat: X, XI, XII
            $table->integer('kapasitas');           // Jumlah maksimal siswa
            $table->timestamps();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('kelas');
    }
};