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\n            sp.\"linkShareAccessLevel\" AS \"access_level!: AccessLevel\",\n            owner_team.team_id AS \"owner_team_id!\"\n        FROM \"SharePermission\" sp\n        JOIN \"ProjectPermission\" pp ON pp.\"sharePermissionId\" = sp.id\n        JOIN \"Project\" p ON p.id = pp.\"projectId\"\n        JOIN owner_team(p.\"userId\") owner_team\n          ON owner_team.team_id::text = ANY($2)\n        WHERE pp.\"projectId\" = $1\n          AND sp.\"linkShare\" = 'TEAM'\n          AND sp.\"linkShareAccessLevel\" IS NOT NULL\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "access_level!: AccessLevel",
        "type_info": {
          "Custom": {
            "name": "\"AccessLevel\"",
            "kind": {
              "Enum": [
                "view",
                "comment",
                "edit",
                "owner"
              ]
            }
          }
        }
      },
      {
        "ordinal": 1,
        "name": "owner_team_id!",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "TextArray"
      ]
    },
    "nullable": [
      true,
      null
    ]
  },
  "hash": "0aebe9b87261ba81fef8a4e2753d21270607b1be37420fda53df8cc71cf96f8b"
}