<?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('menu_items', function (Blueprint $table) {
            $table->id();
            $table->string('label', 100);            // Texto visible
            $table->string('url', 500);              // URL o ruta
            $table->string('icono', 80)->nullable(); // Bootstrap Icon class
            $table->integer('orden')->default(0);
            $table->boolean('activo')->default(true);
            $table->string('target', 10)->default('_self'); // _self o _blank
            $table->timestamps();
        });
    }

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