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

try {
    $database = new Database();
    $db = $database->getConnection();

    $sql = "DESCRIBE config_empresa";
    $result = $db->query($sql);
    $columns = $result->fetchAll(PDO::FETCH_ASSOC);

    echo "Estrutura da tabela config_empresa:\n";
    foreach ($columns as $column) {
        echo $column['Field'] . " - " . $column['Type'] . "\n";
    }

} catch(PDOException $e) {
    echo "Erro: " . $e->getMessage();
}
?>
