-- Enable pg_cron extension for automated cleanup
CREATE EXTENSION IF NOT EXISTS pg_cron;

-- Grant necessary permissions to postgres role
GRANT USAGE ON SCHEMA cron TO postgres;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA cron TO postgres;