<?php
require_once __DIR__ . '/../config/database.php';

try {
    $db = getDB();

    echo "Institutions table columns:\n";
    $stmt = $db->query('DESCRIBE institutions');
    $columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
    foreach ($columns as $col) {
        echo $col['Field'] . ' - ' . $col['Type'] . "\n";
    }

} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage() . "\n";
}
?>