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 mr.message_id,\n c.id,\n c.link_id,\n c.email_address,\n COALESCE(mr.name, c.name) as \"name\", -- name from message overrides contact name\n c.original_photo_url,\n c.sfs_photo_url,\n c.created_at,\n c.updated_at,\n mr.recipient_type as \"recipient_type!: db::address::EmailRecipientType\"\n FROM email_messages m\n JOIN email_message_recipients mr ON m.id = mr.message_id\n JOIN email_contacts c ON mr.contact_id = c.id\n WHERE\n m.id = ANY($1)\n ORDER BY mr.message_id, mr.recipient_type\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "message_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "link_id",
"type_info": "Uuid"
},
{
"ordinal": 3,
"name": "email_address",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "name",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "original_photo_url",
"type_info": "Text"
},
{
"ordinal": 6,
"name": "sfs_photo_url",
"type_info": "Text"
},
{
"ordinal": 7,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 8,
"name": "updated_at",
"type_info": "Timestamptz"
},
{
"ordinal": 9,
"name": "recipient_type!: db::address::EmailRecipientType",
"type_info": {
"Custom": {
"name": "email_recipient_type",
"kind": {
"Enum": [
"TO",
"CC",
"BCC"
]
}
}
}
}
],
"parameters": {
"Left": [
"UuidArray"
]
},
"nullable": [
false,
false,
false,
false,
null,
true,
true,
false,
false,
false
]
},
"hash": "e10378347cb7114449942c583bb9426932aba9ae4a09ab96ebfa32c46e8b6fcf"
}