<?php
require_once __DIR__ . '/../includes/db.php';
try {
    $columns = fetchAll("DESCRIBE production_invoices");
    echo "Columns in production_invoices:\n";
    foreach ($columns as $col) {
        echo "- {$col['Field']} ({$col['Type']}) - Null: {$col['Null']} - Key: {$col['Key']} - Default: {$col['Default']}\n";
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
