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 SELECT\n orig_msg.link_id AS source_link_id,\n eaf.attachment_id,\n eaf.message_id AS draft_id,\n ea.provider_attachment_id,\n orig_msg.provider_id AS \"message_provider_id!\",\n ea.filename,\n ea.mime_type,\n ea.size_bytes\n FROM email_attachments_fwd eaf\n JOIN email_messages draft_msg ON eaf.message_id = draft_msg.id\n JOIN email_attachments ea ON eaf.attachment_id = ea.id\n JOIN email_messages orig_msg ON ea.message_id = orig_msg.id\n WHERE eaf.message_id = $1 AND draft_msg.link_id = $2\n ORDER BY ea.filename ASC\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "source_link_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "attachment_id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "draft_id",
"type_info": "Uuid"
},
{
"ordinal": 3,
"name": "provider_attachment_id",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "message_provider_id!",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "filename",
"type_info": "Varchar"
},
{
"ordinal": 6,
"name": "mime_type",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "size_bytes",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
false,
false,
true,
true,
true,
true,
true
]
},
"hash": "700065c1f792018d70813197362247a36e6379b82d71444aab73e5cd702d4b94"
}