Update: 2026-05-06 01:41:33

This commit is contained in:
Hamza-Ayed
2026-05-06 01:41:33 +03:00
parent 05eba6adfb
commit c7a152af81

View File

@@ -0,0 +1,15 @@
<?php
require_once __DIR__ . '/../app/bootstrap/init.php';
use App\Core\Database;
$db = Database::getInstance();
$tables = ['users', 'tenants', 'companies'];
foreach ($tables as $table) {
echo "Table: $table\n";
$stmt = $db->query("SHOW FULL COLUMNS FROM $table WHERE Field = 'id'");
$col = $stmt->fetch(PDO::FETCH_ASSOC);
print_r($col);
echo "--------------------------\n";
}