<?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_records', function (Blueprint $table): void {
            $table->text('proof')->nullable()->after('method');
            $table->string('remark', 255)->nullable()->after('proof');
        });
    }

    public function down(): void
    {
        Schema::table('payment_records', function (Blueprint $table): void {
            $table->dropColumn(['proof', 'remark']);
        });
    }
};
