<?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('plans', function (Blueprint $table) {
            $table->unsignedInteger('max_transactions_per_month')->nullable()->after('max_orders_per_month');
            $table->unsignedInteger('max_metals_per_month')->nullable()->after('max_transactions_per_month');
        });
    }

    public function down(): void
    {
        Schema::table('plans', function (Blueprint $table) {
            $table->dropColumn(['max_transactions_per_month', 'max_metals_per_month']);
        });
    }
};
