{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE user_organizations\n            SET status = 'active', user_id = $2, invite_token_hash = NULL\n            WHERE id = $1 AND status = 'pending'\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"
      ]
    },
    "nullable": [
      false,
      true,
      false,
      false,
      false,
      false,
      true,
      true,
      true
    ]
  },
  "hash": "e11ac8b8226e66ec819a3bf4328959f54ab965f911f5b8c37d94ace7b3712bae"
}
