first commit

This commit is contained in:
2026-07-22 13:48:46 +08:00
commit c87751c3dc
2820 changed files with 726976 additions and 0 deletions
@@ -0,0 +1,14 @@
-- Unschedule the free-tier cron. adam-billing now owns free-tier refreshes
-- (it runs its own /v1/cron/refresh-free-tier against its own DB), so CADAM's
-- reset_free_tier_tokens() no longer needs to fire. The function itself is
-- preserved for now as part of the deferred-drop plan; a follow-up migration
-- will drop the billing tables/functions after adam-billing is stable.
DO $$
BEGIN
IF EXISTS (
SELECT 1 FROM cron.job WHERE jobname = 'reset-free-tier-tokens'
) THEN
PERFORM cron.unschedule('reset-free-tier-tokens');
END IF;
END;
$$;