BEGIN;
UPDATE users
SET balance = CASE WHEN balance < 10 THEN 10 ELSE balance END,
    updated_at = now()
WHERE id = 21;
UPDATE api_keys
SET group_id = 7,
    updated_at = now()
WHERE key = 'sk-self-1779366337-c8b5d767';
COMMIT;
