{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE user_organizations SET role = $3\n            WHERE user_id = $1 AND organization_id = $2 AND status = 'active'\n            RETURNING id, user_id, organization_id, role, status, created_at,\n                      invite_email, invited_by, expires_at\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "user_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "organization_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "role",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "status",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "invite_email",
        "type_info": "Varchar"
      },
      {
        "ordinal": 7,
        "name": "invited_by",
        "type_info": "Uuid"
      },
      {
        "ordinal": 8,
        "name": "expires_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid",
        "Varchar"
      ]
    },
    "nullable": [
      false,
      true,
      false,
      false,
      false,
      false,
      true,
      true,
      true
    ]
  },
  "hash": "4cb670d51893848aaa3025dc11146796f96d86162962e14350b2c0d551821041"
}
