<?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('membership_plans', function (Blueprint $table) {
            $table->string('purchase_link', 1000)->nullable()->after('price');
            $table->string('badge_label', 32)->nullable()->after('sort_order');
            $table->string('accent_color', 16)->nullable()->after('badge_label');
        });
    }

    public function down(): void
    {
        Schema::table('membership_plans', function (Blueprint $table) {
            $table->dropColumn(['purchase_link', 'badge_label', 'accent_color']);
        });
    }
};
