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.email_address,\n COALESCE(mr.name, c.name) as \"name\",\n c.sfs_photo_url,\n mr.recipient_type as \"recipient_type!: DbRecipientType\"\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 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": "email_address",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "name",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "sfs_photo_url",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "recipient_type!: DbRecipientType",
"type_info": {
"Custom": {
"name": "email_recipient_type",
"kind": {
"Enum": [
"TO",
"CC",
"BCC"
]
}
}
}
}
],
"parameters": {
"Left": [
"UuidArray"
]
},
"nullable": [
false,
false,
null,
true,
false
]
},
"hash": "4cc88f2a38cb0722282ef262adefd9fcb0d4778c5dc308720710e8f5e9995911"
}