Files
Investidor-V2/tools/portal-service-followup-bootstrap-inspect.php
T
nala 287e991486
tests / ci (push) Waiting to run
oportunidades 7
2026-10-13 11:40:29 +02:00

10 lines
875 B
PHP

<?php
$app = (static fn ($p) => require $p)(__DIR__.'/portal-service-followup-runtime.php');
$db = Illuminate\Support\Facades\DB::connection();
echo json_encode(['target' => config('database.connections.pgsql.database').':55441',
'pair' => $db->table('portal_superuser_pair')->first(),
'approvals' => $db->table('portal_security_approvals')->where('kind', 'bootstrap')->get(['id','requested_by','subject_user_id','approved_by','expires_at','consumed_at']),
'audits' => $db->table('audit_events')->where('source_system', 'portal-profile-installation')->get(['action','actor_user_id','correlation_id']),
'table_count' => count($db->select("SELECT tablename FROM pg_tables WHERE schemaname NOT IN ('pg_catalog','information_schema')")),
'country_enabled' => config('portal.organization_country_enabled'), 'active_writes' => 0], JSON_THROW_ON_ERROR).PHP_EOL;