{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT EXISTS(\n            -- Direct app user\n            SELECT 1 FROM project_app_users pau\n            WHERE pau.project_id = $1 AND pau.user_id = $2\n\n            UNION\n\n            -- Team member of an app team\n            SELECT 1 FROM project_app_teams pat\n            INNER JOIN team_members tm ON tm.team_id = pat.team_id\n            WHERE pat.project_id = $1 AND tm.user_id = $2\n        ) as \"exists!\"\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "exists!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "615f78a6f960b330dbb2136f873f152753ff64aa216f46777226f46936160451"
}
