<?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('trade_document_payments',function(Blueprint $t){$t->string('payer_name')->nullable();$t->string('payer_account_reference')->nullable();$t->string('proof_path')->nullable();$t->string('reconciliation_status',30)->default('unreconciled');$t->string('bank_reference')->nullable();$t->dateTime('reconciled_at')->nullable();$t->foreignId('reconciled_by')->nullable()->index();});}public function down():void{Schema::table('trade_document_payments',fn(Blueprint $t)=>$t->dropColumn(['payer_name','payer_account_reference','proof_path','reconciliation_status','bank_reference','reconciled_at','reconciled_by']));}};
