<?php
require __DIR__ . '/../api/bootstrap.php';

use App\Core\Database;
use App\Services\TierService;

$pdo = Database::connection();
$result = TierService::recalculateAll($pdo, 0);
echo '[' . date('c') . '] Tiers recalculated. Updated: ' . (int)($result['updated'] ?? 0) . PHP_EOL;
