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.6 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT\n                u.id AS \"id!\",\n                u.macro_user_id AS \"fusion_user_id?\",\n                u.\"organizationId\" AS \"organization_id?\",\n                NULL::uuid AS \"account_manager_grant_id?\",\n                NULL::text AS \"manager_user_id?\"\n            FROM \"UserApiKey\" k\n            JOIN \"User\" u ON u.id = k.user_id\n            WHERE k.hash = $1\n            UNION ALL\n            SELECT\n                u.id,\n                u.macro_user_id,\n                u.\"organizationId\",\n                g.id,\n                g.manager_user_id\n            FROM account_manager_grants g\n            JOIN \"User\" u ON u.id = g.managed_user_id\n            WHERE g.key_hash = $1\n              AND g.status = 'active'\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "fusion_user_id?",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "organization_id?",
        "type_info": "Int4"
      },
      {
        "ordinal": 3,
        "name": "account_manager_grant_id?",
        "type_info": "Uuid"
      },
      {
        "ordinal": 4,
        "name": "manager_user_id?",
        "type_info": "Text"
      }
    ],
    "parameters": {
      "Left": [
        "Bytea"
      ]
    },
    "nullable": [
      null,
      null,
      null,
      null,
      null
    ]
  },
  "hash": "5d1e9bf92264059c11b5552fc2f6154e37b1d50e960ee6dfc8fe40495ef5a89e"
}