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,\n a.message_id,\n a.provider_attachment_id,\n a.filename,\n a.mime_type,\n a.size_bytes,\n a.content_id,\n eas.sfs_id as \"sfs_id?\",\n a.created_at, a.reference_url,\n m.thread_id\n FROM \n email_attachments a\n JOIN\n email_messages m ON a.message_id = m.id\n LEFT JOIN\n email_attachments_sfs eas ON a.id = eas.attachment_id\n WHERE\n m.thread_id = ANY($1)\n ORDER BY \n a.created_at ASC\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": "thread_id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"UuidArray"
]
},
"nullable": [
false,
false,
true,
true,
true,
true,
true,
false,
false,
true,
false
]
},
"hash": "fa6ce1227249fad255ffb3f13459fe2de09d774a8d11cfcd63d404161329dc67"
}