Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
-- Creates necessary document indices to improve the performance of name search
-- Enable trigram extension for fuzzy text matching
CREATE EXTENSION IF NOT EXISTS pg_trgm;
-- GIN trigram index allows efficient partial string matching
CREATE INDEX IF NOT EXISTS idx_document_name_trgm
ON "Document" USING gin (name gin_trgm_ops);