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.8 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            INSERT INTO team_invite (id, team_id, email, team_role, invited_by, created_at, last_sent_at, is_agent)\n            SELECT\n                t.id,\n                $1::uuid,\n                t.email,\n                $2,\n                $3::text,\n                NOW(),\n                NOW(),\n                $7\n            FROM UNNEST($4::uuid[], $5::text[], $6::text[]) AS t(id, email, user_id)\n            WHERE NOT EXISTS (\n                SELECT 1 FROM team_invite ti\n                WHERE ti.team_id = $1 AND ti.email = t.email\n            )\n            AND NOT EXISTS (\n                SELECT 1 FROM team_user tu\n                WHERE tu.team_id = $1 AND tu.user_id = t.user_id\n            )\n            RETURNING id, team_id, email, is_agent\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "team_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "email",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "is_agent",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        {
          "Custom": {
            "name": "team_role",
            "kind": {
              "Enum": [
                "member",
                "admin",
                "owner"
              ]
            }
          }
        },
        "Text",
        "UuidArray",
        "TextArray",
        "TextArray",
        "Bool"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "0dfab4ecc9eaf44b8968baedf3c0d41d33324787a7adc56c978ba0766baa2776"
}