workspace_id UUID REFERENCES public.ai_workspaces(id) ON DELETE CASCADE, document_id UUID REFERENCES public.ai_documents(id) ON DELETE CASCADE, ...