<?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('payment_transactions', function (Blueprint $table): void {
            $table->string('invoice_url', 2048)->nullable();
            $table->string('invoice_pdf_url', 2048)->nullable();
            $table->timestamp('invoice_email_sent_at')->nullable();
        });
    }

    public function down(): void
    {
        Schema::table('payment_transactions', function (Blueprint $table): void {
            $table->dropColumn([
                'invoice_url',
                'invoice_pdf_url',
                'invoice_email_sent_at',
            ]);
        });
    }
};
