<?php
$token = $_GET['token'] ?? '';
if ($token !== 'valu_debug_2026') { die('Kein Zugriff.'); }
require_once __DIR__ . '/db.php';
echo "<pre>";
// Schema aller relevanten Tabellen
foreach (['positionen','standorte','raeume','standort_positionen','standort_raeume'] as $t) {
    $cols = $pdo->query("PRAGMA table_info($t)")->fetchAll(PDO::FETCH_ASSOC);
    echo "$t: " . implode(', ', array_column($cols, 'name')) . "\n";
}
echo "</pre>";
