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.

1005 B
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "SELECT count(*) FILTER (WHERE session_id <> $2) AS \"total!\",\n               count(*) FILTER (WHERE user_id = $1 AND status IN ('starting', 'ready') AND session_id <> $2) AS \"account!\",\n               EXISTS (SELECT 1 FROM agent_preview_lease WHERE user_id = $1 AND created_at > now() - make_interval(secs => $3)) AS \"paced!\"\n               FROM agent_preview_lease WHERE expires_at > now()",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "total!",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "account!",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "paced!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Uuid",
        "Float8"
      ]
    },
    "nullable": [
      null,
      null,
      null
    ]
  },
  "hash": "e1c0c0f5cd30dcdb1d38d568237b81795c68b1d28347c5a570f95ae07b5fd885"
}