<?php
header('Content-Type: application/json');
require_once __DIR__ . '/../config.php';
$db = getDB();
$cols = $db->query("DESCRIBE inversionista")->fetchAll(PDO::FETCH_ASSOC);
echo json_encode(array_column($cols, 'Field'), JSON_PRETTY_PRINT);
