<?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('workflow_estados', function (Blueprint $table) {
            $table->id();
            $table->string('nombre', 60);
            $table->string('slug', 40)->unique();
            $table->string('color', 20)->default('gray');
            $table->string('icono', 10)->default('⚪');
            $table->unsignedSmallInteger('orden')->default(0);
            $table->boolean('es_inicial')->default(false);
            $table->boolean('es_final')->default(false);
            $table->boolean('activo')->default(true);
            $table->timestamps();
        });
    }

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