<?php
$pdo = new PDO('mysql:host=127.0.0.1;dbname=bd_insuite_backbones', 'root', '');
$cols = $pdo->query('DESCRIBE incidents')->fetchAll(PDO::FETCH_ASSOC);

echo "=== Structure table incidents ===\n\n";
foreach($cols as $c) {
    echo $c['Field'] . " - " . $c['Type'] . ($c['Key'] ? " [{$c['Key']}]" : "") . "\n";
}
