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.2 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            WITH participant_ids AS (\n                SELECT p.user_id\n                FROM call_record_participants p\n                JOIN \"User\" u ON u.id = p.user_id\n                WHERE p.call_record_id = $1\n            ),\n            participant_team_ids AS (\n                SELECT DISTINCT tu.team_id\n                FROM team_user tu\n                JOIN participant_ids p ON p.user_id = tu.user_id\n            ),\n            candidate_user_ids AS (\n                SELECT user_id FROM participant_ids\n                UNION\n                SELECT tu.user_id\n                FROM team_user tu\n                JOIN participant_team_ids t ON t.team_id = tu.team_id\n            )\n            SELECT DISTINCT user_id AS \"user_id!\"\n            FROM candidate_user_ids\n            ORDER BY user_id ASC\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "user_id!",
        "type_info": "Text"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "a1ae6a4d3ee9d69b82d3b4d1afc01425c2925e38c691a491739c4094aafb67a9"
}