-- Enable replica identity for complete row data during realtime updates
ALTER TABLE public.content_submissions REPLICA IDENTITY FULL;
ALTER TABLE public.submission_items REPLICA IDENTITY FULL;
ALTER TABLE public.reviews REPLICA IDENTITY FULL;
ALTER TABLE public.reports REPLICA IDENTITY FULL;

-- Add tables to realtime publication for live updates
ALTER PUBLICATION supabase_realtime ADD TABLE public.content_submissions;
ALTER PUBLICATION supabase_realtime ADD TABLE public.submission_items;
ALTER PUBLICATION supabase_realtime ADD TABLE public.reviews;
ALTER PUBLICATION supabase_realtime ADD TABLE public.reports;