-- Insert a dummy conversation to satisfy foreign key constraints for testing -- Run this in Supabase SQL Editor INSERT INTO public.chat_conversations (id, title, is_group, metadata) VALUES ( '00000000-0000-0000-0000-000000000000', 'System Test Conversation', false, '{"type": "test"}'::jsonb ) ON CONFLICT (id) DO NOTHING; -- Also ensure the current user has permission to see this conversation if RLS is strict -- (This depends on your specific RLS policies for chat_conversations)