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.

1.9 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n                        SELECT event.id AS \"id!\", event.actor_id AS \"actor_id!\",\n                               event.occurred_at AS \"occurred_at!\", event.action AS \"action!\", event.payload\n                        FROM unnest($3::text[]) selected(action)\n                        CROSS JOIN LATERAL (\n                            SELECT id, actor_id, occurred_at, action, action_payload AS payload\n                            FROM activity_events\n                            WHERE entity_type = $1 AND entity_id = $2 AND action = selected.action\n                              AND action NOT IN ('messaged', 'opened', 'edited', 'sent')\n                              AND (selected.action <> 'property_changed' OR cardinality($4::text[]) = 0\n                                   OR action_payload->>'property' = ANY($4::text[]))\n                            ORDER BY occurred_at DESC, id DESC LIMIT $5\n                        ) event\n                        ORDER BY event.occurred_at DESC, event.id DESC LIMIT $5\n                    ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "actor_id!",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "occurred_at!",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 3,
        "name": "action!",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "payload",
        "type_info": "Jsonb"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text",
        "TextArray",
        "TextArray",
        "Int8"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      true
    ]
  },
  "hash": "61f16c34534adc603c9e4730633a37c8e6e77b9dbb20eb1035e8b74dca5b71fc"
}