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 ph.uuid, \n ph.\"documentId\" as document_id,\n ph.owner, \n ph.root_id, \n ph.page, \n ph.red,\n ph.green, \n ph.blue, \n ph.alpha, \n ph.type as highlight_type, \n ph.text, \n ph.\"pageViewportWidth\" as page_viewport_width, \n ph.\"pageViewportHeight\" as page_viewport_height, \n ph.\"createdAt\"::timestamptz as created_at, \n ph.\"updatedAt\"::timestamptz as updated_at, \n ph.\"deletedAt\"::timestamptz as deleted_at, \n array_agg((phr.id, phr.top, phr.left, phr.width, phr.height)) as \"highlight_rects!: Vec<PdfHighlightRect>\"\n FROM \"PdfHighlightAnchor\" ph\n JOIN \"PdfHighlightRect\" phr ON ph.uuid = phr.\"pdfHighlightAnchorId\"\n WHERE ph.uuid = $1\n GROUP BY ph.uuid, ph.owner, ph.root_id, ph.page, ph.red, ph.green, ph.blue, ph.alpha, ph.type, ph.text, ph.\"pageViewportWidth\", ph.\"pageViewportHeight\", ph.\"createdAt\", ph.\"updatedAt\", ph.\"deletedAt\"\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "uuid",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "document_id",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "owner",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "root_id",
"type_info": "Uuid"
},
{
"ordinal": 4,
"name": "page",
"type_info": "Int4"
},
{
"ordinal": 5,
"name": "red",
"type_info": "Int4"
},
{
"ordinal": 6,
"name": "green",
"type_info": "Int4"
},
{
"ordinal": 7,
"name": "blue",
"type_info": "Int4"
},
{
"ordinal": 8,
"name": "alpha",
"type_info": "Float8"
},
{
"ordinal": 9,
"name": "highlight_type",
"type_info": "Int4"
},
{
"ordinal": 10,
"name": "text",
"type_info": "Text"
},
{
"ordinal": 11,
"name": "page_viewport_width",
"type_info": "Float8"
},
{
"ordinal": 12,
"name": "page_viewport_height",
"type_info": "Float8"
},
{
"ordinal": 13,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 14,
"name": "updated_at",
"type_info": "Timestamptz"
},
{
"ordinal": 15,
"name": "deleted_at",
"type_info": "Timestamptz"
},
{
"ordinal": 16,
"name": "highlight_rects!: Vec<PdfHighlightRect>",
"type_info": "RecordArray"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
null,
null,
null,
null
]
},
"hash": "b2d10fcc397c03ef65e524afdc254d03c69921b434c7bfc0b8524f190fc29709"
}