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.3 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT id, amount_cents, stripe_invoice_id, status::text AS \"status!\",\n                   (status = 'pending'\n                    AND stripe_invoice_id IS NULL\n                    AND updated_at < NOW() - INTERVAL '10 minutes') AS \"orphaned!\"\n            FROM ai_credit_reload\n            WHERE user_id = $1\n              AND kind = 'purchase'\n              AND (status = 'pending'\n                   OR (status = 'failed' AND stripe_invoice_id IS NOT NULL))\n            ORDER BY created_at\n            FOR UPDATE\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "amount_cents",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "stripe_invoice_id",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "status!",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "orphaned!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      null,
      null
    ]
  },
  "hash": "fb3a18b96714c926289eb8412c7b8dff0c04825ee10db817f7ad4d45cde85890"
}