<?php
require_once __DIR__ . '/db/config.php';
$db = db();

try {
    $result = $db->query("SHOW COLUMNS FROM doctor_holidays");
    if ($result) {
        $columns = $result->fetchAll(PDO::FETCH_ASSOC);
        echo "Table 'doctor_holidays' exists with columns:\n";
        foreach ($columns as $col) {
            echo "- " . $col['Field'] . " (" . $col['Type'] . ")\n";
        }
    } else {
        echo "Table 'doctor_holidays' does not exist.\n";
    }
} catch (PDOException $e) {
    echo "Error: " . $e->getMessage() . "\n";
}

