add refresh_balances/diag, tokens_guard (single UPDATE), priority notes; 70 accounts live

This commit is contained in:
ENI
2026-11-14 15:09:25 +02:00
parent 93bdd85459
commit 77d0cd6feb
21 changed files with 841 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
\pset pager off
\echo === channels ===
SELECT id,name,priority,auto_ban,status,used_quota,char_length(models) AS models_len, "group"
FROM channels WHERE name IN ('dpa-free','dpa-frontier') ORDER BY priority DESC;
\echo === abilities_per_channel ===
SELECT a.channel_id, count(*) AS rows, sum(CASE WHEN a.enabled THEN 1 ELSE 0 END) AS enabled
FROM abilities a JOIN channels c ON c.id=a.channel_id
WHERE c.name IN ('dpa-free','dpa-frontier') GROUP BY a.channel_id;
\echo === sample_models ===
SELECT c.name, a.model, a.enabled, a.priority
FROM abilities a JOIN channels c ON c.id=a.channel_id
WHERE c.name IN ('dpa-free','dpa-frontier') AND a."group"='default' ORDER BY c.name, a.model LIMIT 30;