<?php
include 'db.php';

echo "Checking budgets table structure...\n\n";

try {
    $stmt = $pdo->query('DESCRIBE budgets');
    echo "budgets table structure:\n";
    while ($row = $stmt->fetch()) {
        echo "  " . $row['Field'] . " - " . $row['Type'] . "\n";
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}

echo "\nDone!\n";
?>
