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 UPDATE email_attachments a SET upload_claimed_at = NULL FROM email_messages m\n WHERE a.message_id = m.id AND m.link_id = $1 AND m.id = $2\n AND a.upload_claimed_at < now() - interval '3 minutes'\n AND NOT EXISTS(SELECT 1 FROM document_email d WHERE d.email_attachment_id = a.id)\n AND NOT EXISTS(SELECT 1 FROM email_attachments_sfs s WHERE s.attachment_id = a.id)\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": []
},
"hash": "4608b2216600e33179818cdeda96ca9df45c08081fae71711fad34a93122b1ea"
}