<?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('vehicle_types', function (Blueprint $table) {
        $table->id();
        $table->string('name')->unique(); // e.g., 'Bike', 'Car', 'Auto'
        $table->decimal('fare_per_km', 8, 2);
        $table->timestamps();
    });
}

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