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
{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO github_pr_tasks (id, github_key, task_id, team_id)\n SELECT u.id, u.github_key, u.task_id, tt.team_id\n FROM UNNEST($1::uuid[], $2::text[], $3::text[], $4::text[])\n AS u(id, github_key, task_id, document_id)\n LEFT JOIN team_task tt ON tt.document_id = u.document_id\n ON CONFLICT (github_key, task_id)\n DO UPDATE SET team_id = COALESCE(github_pr_tasks.team_id, EXCLUDED.team_id)\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"UuidArray",
"TextArray",
"TextArray",
"TextArray"
]
},
"nullable": []
},
"hash": "2d860324def387468b6b089c4be85a965281da729a7cba15f0f0c9d97f296e94"
}