-- Enable full row data for realtime updates on content_submissions ALTER TABLE public.content_submissions REPLICA IDENTITY FULL; -- Add table to realtime publication ALTER PUBLICATION supabase_realtime ADD TABLE public.content_submissions; -- Add admin setting for realtime queue toggle INSERT INTO public.admin_settings (setting_key, setting_value, category, description) VALUES ( 'system.use_realtime_queue', '"true"'::jsonb, 'system', 'Use realtime subscriptions for moderation queue updates instead of polling' ) ON CONFLICT (setting_key) DO NOTHING;