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.

887 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "SELECT host AS \"host!\", count(*) AS \"count!\"\n               FROM scheduling_booking\n               CROSS JOIN LATERAL jsonb_array_elements_text(record->'booking'->'hosts') AS host\n               WHERE profile_id = $1 AND starts_at >= $2 AND starts_at < $3\n                 AND status <> 'cancelled' AND host = ANY($4)\n               GROUP BY host",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "host!",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "count!",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Timestamptz",
        "Timestamptz",
        "TextArray"
      ]
    },
    "nullable": [
      null,
      null
    ]
  },
  "hash": "a33d4ed123089542b9ecef6578de50673e4d55bb25760285917116ffceeec7b9"
}