<?php

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

/**
 * Araç kaynaklarında araç tipi (sınıfı): binek, LCV, minibüs, midibüs, otobüs.
 */
return new class extends Migration {
    public function up(): void
    {
        Schema::table('resources', function (Blueprint $table) {
            $table->string('vehicle_class', 20)->nullable()->after('type');
        });
    }

    public function down(): void
    {
        Schema::table('resources', function (Blueprint $table) {
            $table->dropColumn('vehicle_class');
        });
    }
};
