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 ct.id AS \"contact_id?\"\n FROM crm_companies co\n JOIN team_crm_settings tcs ON tcs.team_id = co.team_id AND tcs.crm_enabled\n JOIN team_user tu ON tu.team_id = co.team_id AND tu.user_id = $1\n LEFT JOIN crm_contacts ct\n ON ct.company_id = co.id\n AND (NOT ct.hidden OR tu.team_role <> 'member')\n WHERE co.id = $2\n AND (NOT co.hidden OR tu.team_role <> 'member')\n ORDER BY ct.id\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "contact_id?",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Text",
"Uuid"
]
},
"nullable": [
false
]
},
"hash": "576f08c3b00a619dcfb753de1ff1f4b4a18a80b0582428971b9a9e320ab684b4"
}