<?php
require __DIR__ . '/../vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
$dotenv->safeLoad();
$pdo = App\Database::getConnection();
$rows = $pdo->query('SELECT id,username,email,role_id,status,created_at FROM users')->fetchAll(PDO::FETCH_ASSOC);
foreach ($rows as $r) echo implode(' | ', [$r['id'],$r['username'] ?? '','<'.$r['email'].'>',$r['status'],$r['created_at']]) . PHP_EOL;
