<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('teachers', function (Blueprint $table) {
            $table->id();

            // Maklumat asas guru
            $table->string('ic')->unique();          // No. kad pengenalan
            $table->string('nama');
            $table->string('emel')->nullable();

            // Penempatan / program
            $table->string('program')->nullable();   // program utama yang diajar

            // Maklumat perkhidmatan
            $table->string('gred')->nullable();
            $table->string('sijil_kemahiran')->nullable(); // contoh: SKM, DKM, lain-lain

            // Status VTO (Vocational Training Officer)
            $table->enum('status_vto', ['VTO', 'TVET-i'])->default('tiada');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('teachers');
    }
};

