-- Runs once on first Postgres container boot (docker-entrypoint-initdb.d). -- Mirrors what a managed Supabase project already has, so schema.sql/data.sql restore -- cleanly on top of it. Safe to re-run (IF NOT EXISTS everywhere). create extension if not exists pg_cron; create extension if not exists pgcrypto; create extension if not exists pg_stat_statements; create extension if not exists "uuid-ossp"; -- pg_cron runs jobs as the calling user against the "postgres" database by default; -- Caterium's cron jobs (Etap 7) are re-created by data.sql / schema.sql restore, this -- just guarantees the extension + background worker exist before that runs. grant usage on schema cron to postgres; grant all privileges on all tables in schema cron to postgres;