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

try {
    $pdo = getConnection();
    
    echo "--- TABLES IN DATABASE ---\n";
    $stmt = $pdo->query("SHOW TABLES");
    $tables = $stmt->fetchAll(PDO::FETCH_COLUMN);
    print_r($tables);

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