Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

3.4 KB
Raw Blame
{
  "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        LEFT JOIN comms_message_threads t ON ph.root_id = t.root_id\n        WHERE ph.\"documentId\" = $1\n        AND ph.\"deletedAt\" IS NULL\n        AND t.deleted_at IS NULL\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": [
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      true,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      null,
      null,
      null,
      null
    ]
  },
  "hash": "911054fa010d0d2e3476ea5837dc807d430829873e08a615736bfead94a008ea"
}