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 a.id, a.message_id, a.provider_attachment_id, \n a.filename, a.mime_type, a.size_bytes, \n a.content_id, eas.sfs_id as \"sfs_id?\", a.created_at, a.reference_url, m.provider_id as \"message_provider_id!\"\n FROM email_attachments a\n JOIN email_messages m ON a.message_id = m.id\n LEFT JOIN email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE a.id = $1 AND m.link_id = $2\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "message_id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "provider_attachment_id",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "filename",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "mime_type",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "size_bytes",
"type_info": "Int8"
},
{
"ordinal": 6,
"name": "content_id",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "sfs_id?",
"type_info": "Uuid"
},
{
"ordinal": 8,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 9,
"name": "reference_url",
"type_info": "Text"
},
{
"ordinal": 10,
"name": "message_provider_id!",
"type_info": "Text"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
false,
true,
true,
true,
true,
true,
false,
false,
true,
true
]
},
"hash": "a970028128bc28df317ad0b2e383a813bb9a787c086797dd233804603fa95791"
}