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 as \"document_id\",\n d.owner,\n d.name as \"document_name\",\n d.\"branchedFromId\" as \"branched_from_id\",\n d.\"branchedFromVersionId\" as \"branched_from_version_id\",\n d.\"documentFamilyId\" as \"document_family_id\",\n d.\"fileType\" as \"file_type\",\n dt.sub_type as \"sub_type?: DocumentSubType\",\n d.\"projectId\" as \"project_id\",\n d.\"deletedAt\"::timestamptz as \"deleted_at\"\n FROM\n \"Document\" d\n LEFT JOIN document_sub_type dt ON dt.document_id = d.id\n WHERE\n d.id = ANY($1)\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "document_id",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "owner",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "document_name",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "branched_from_id",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "branched_from_version_id",
"type_info": "Int8"
},
{
"ordinal": 5,
"name": "document_family_id",
"type_info": "Int8"
},
{
"ordinal": 6,
"name": "file_type",
"type_info": "Text"
},
{
"ordinal": 7,
"name": "sub_type?: DocumentSubType",
"type_info": {
"Custom": {
"name": "document_sub_type_value",
"kind": {
"Enum": [
"task",
"snippet",
"skill",
"initiative_description"
]
}
}
}
},
{
"ordinal": 8,
"name": "project_id",
"type_info": "Text"
},
{
"ordinal": 9,
"name": "deleted_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"TextArray"
]
},
"nullable": [
false,
false,
false,
true,
true,
true,
true,
true,
true,
null
]
},
"hash": "ecd59864bf9f241755a73ed370146370580a768c26a4c9f6b1fe9d8244abdb36"
}