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 d.id,\n d.name,\n d.\"owner\",\n d.\"fileType\" as \"file_type!\",\n di.id as \"document_version_id?\"\n FROM\n \"Document\" d\n LEFT JOIN LATERAL (\n SELECT\n i.id\n FROM\n \"DocumentInstance\" i\n WHERE\n i.\"documentId\" = d.id\n ORDER BY\n i.\"createdAt\" ASC\n LIMIT 1\n ) di ON true\n WHERE\n d.\"deletedAt\" IS NULL AND\n d.id = $1 AND\n d.\"fileType\" IS NOT NULL\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "name",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "owner",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "file_type!",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "document_version_id?",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
true,
false
]
},
"hash": "233648d4502d3b4c6190603e4692c9224a44d046cecb5cce585afbb2e8aeaf49"
}