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        SELECT\n            (ct.hidden OR c.hidden IS TRUE) AS \"hidden!\",\n            ct.team_id AS \"team_id!\",\n            tu.team_role AS \"role!: TeamRole\"\n        FROM crm_contacts ct\n        LEFT JOIN crm_companies c\n            ON c.id = ct.company_id\n        JOIN team_user tu\n            ON tu.team_id = ct.team_id\n           AND tu.user_id = $1\n        WHERE ct.id = $2\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "hidden!",
        "type_info": "Bool"
      },
      {
        "ordinal": 1,
        "name": "team_id!",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "role!: TeamRole",
        "type_info": {
          "Custom": {
            "name": "team_role",
            "kind": {
              "Enum": [
                "member",
                "admin",
                "owner"
              ]
            }
          }
        }
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Uuid"
      ]
    },
    "nullable": [
      null,
      false,
      false
    ]
  },
  "hash": "bc97322b20042194e49d0bb330bcd9b746e21e10c13c42ea7b76b72afc422b2d"
}