<?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('event_participants', function (Blueprint $table) {
            // Payer-seitige Eingaben der gewählten Zahlungsart (Schema je Modul: getParticipantOptions()).
            $table->json('payment_options')->nullable()->after('payment_method');
        });
    }

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