<?php
chdir(dirname(__DIR__));
require_once 'includes/db.php';

echo "=== invoice_payment_attachments table ===\n";
$r = fetchAll('DESCRIBE invoice_payment_attachments');
foreach ($r as $c) echo $c['Field'] . ' | ' . $c['Type'] . "\n";

echo "\nupload dir: " . (is_dir('uploads/payment_proofs') ? 'EXISTS' : 'MISSING') . "\n";
