<?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::table('planes', function (Blueprint $table): void {
            $table->boolean('permite_manychat_integration')->default(false)->after('permite_reportes_avanzados');
        });
    }

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