<?php

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

/**
 * ⚠️ ADVERTENCIA ANTIGRAVITY:
 * Esta migración DEBE haber sido generada por Laravel Blueprint (draft.yaml).
 * Si estás escribiendo esto manualmente, DETENTE y usa el flujo correcto:
 *   1. Definir en draft.yaml
 *   2. php artisan blueprint:build
 *
 * Única excepción: Operaciones no soportadas por Blueprint (ALTER RENAME,
 * particionamiento, triggers). Documentar con: // EXCEPCIÓN BLUEPRINT: [razón]
 */
return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('{{ table }}', function (Blueprint $table) {
            $table->id(); // Para UUIDs cambiar a: $table->uuid('id')->primary();

            $table->timestamps();
            $table->softDeletes(); // Historial para Data Warehouse / PowerBI
        });
    }

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