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 c.\"id\" as \"item_id!\",\n c.\"owner\" as \"owner\",\n c.\"fileType\" as \"file_type\",\n c.\"name\" as \"file_name\",\n c.\"createdAt\" as \"created_at!\",\n c.\"updatedAt\" as \"updated_at!\",\n c.\"deletedAt\" as \"deleted_at?\",\n uh.\"updatedAt\" as \"viewed_at?\",\n c.\"projectId\" as \"project_id?\",\n dt.sub_type as \"sub_type?: DocumentSubType\"\n FROM\n \"Document\" c\n LEFT JOIN document_sub_type dt ON dt.document_id = c.id\n LEFT JOIN\n \"UserHistory\" uh ON uh.\"itemId\" = c.\"id\"\n AND uh.\"userId\" = $1\n AND uh.\"itemType\" = 'document'\n WHERE\n c.\"id\" = ANY($2)\n ORDER BY\n c.\"updatedAt\" DESC\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "item_id!",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "owner",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "file_type",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "file_name",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "created_at!",
"type_info": "Timestamp"
},
{
"ordinal": 5,
"name": "updated_at!",
"type_info": "Timestamp"
},
{
"ordinal": 6,
"name": "deleted_at?",
"type_info": "Timestamp"
},
{
"ordinal": 7,
"name": "viewed_at?",
"type_info": "Timestamp"
},
{
"ordinal": 8,
"name": "project_id?",
"type_info": "Text"
},
{
"ordinal": 9,
"name": "sub_type?: DocumentSubType",
"type_info": {
"Custom": {
"name": "document_sub_type_value",
"kind": {
"Enum": [
"task",
"snippet",
"skill",
"initiative_description"
]
}
}
}
}
],
"parameters": {
"Left": [
"Text",
"TextArray"
]
},
"nullable": [
false,
false,
true,
false,
false,
false,
true,
false,
true,
false
]
},
"hash": "f61fae90a53682f217091f1ecbdaa60d2eb5b7b0ff90863b0d0dc288779a5f7f"
}