Files
akmon/insert_dummy_conversation.sql
2026-01-20 08:04:15 +08:00

15 lines
505 B
SQL

-- 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)