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.

2.0 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT a.id AS \"id!\", a.agent_correlation_id, a.actor_id AS \"actor_id!\",\n                   a.action AS \"action!\", a.action_payload,\n                   a.subject_id AS \"subject_id!\",\n                   a.entity_type AS \"entity_type!\", a.entity_id AS \"entity_id!\",\n                   a.occurred_at AS \"occurred_at!\"\n            FROM UNNEST($1::text[], $2::text[]) AS k(entity_type, entity_id)\n            JOIN LATERAL (\n                SELECT * FROM activity_events e\n                WHERE e.entity_type = k.entity_type AND e.entity_id = k.entity_id\n                ORDER BY e.occurred_at DESC, e.id DESC\n                LIMIT $3\n            ) a ON TRUE\n            ORDER BY a.occurred_at DESC, a.id DESC\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "agent_correlation_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "actor_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "action!",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "action_payload",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 5,
        "name": "subject_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "entity_type!",
        "type_info": "Text"
      },
      {
        "ordinal": 7,
        "name": "entity_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 8,
        "name": "occurred_at!",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "TextArray",
        "TextArray",
        "Int8"
      ]
    },
    "nullable": [
      false,
      true,
      false,
      false,
      true,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "761a2a37df36e4bd3af3b051b8ba1680d509a9e99b21c98ecf8b88aa21800420"
}