<?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('donations', function (Blueprint $table) {
            // 'quick' = from Hero Section quick donate, 'checkout' = full checkout flow
            $table->enum('source', ['checkout', 'quick'])->default('checkout')->after('is_anonymous');
        });
    }

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