{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT id, username, email, display_name, avatar_url, auth_source, created_at, updated_at,\n                   is_admin, password_hash, external_user_id, payment_provider_id,\n                   is_deleted, is_internal, batch_notifications_enabled, first_batch_email_sent,\n                   low_balance_notification_sent, low_balance_threshold,\n                   auto_topup_amount, auto_topup_threshold, auto_topup_monthly_limit, user_type\n            FROM users\n            WHERE username = $1 AND user_type = 'organization' AND is_deleted = false\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "username",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "email",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "display_name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "avatar_url",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "auth_source",
        "type_info": "Varchar"
      },
      {
        "ordinal": 6,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "updated_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "is_admin",
        "type_info": "Bool"
      },
      {
        "ordinal": 9,
        "name": "password_hash",
        "type_info": "Text"
      },
      {
        "ordinal": 10,
        "name": "external_user_id",
        "type_info": "Text"
      },
      {
        "ordinal": 11,
        "name": "payment_provider_id",
        "type_info": "Varchar"
      },
      {
        "ordinal": 12,
        "name": "is_deleted",
        "type_info": "Bool"
      },
      {
        "ordinal": 13,
        "name": "is_internal",
        "type_info": "Bool"
      },
      {
        "ordinal": 14,
        "name": "batch_notifications_enabled",
        "type_info": "Bool"
      },
      {
        "ordinal": 15,
        "name": "first_batch_email_sent",
        "type_info": "Bool"
      },
      {
        "ordinal": 16,
        "name": "low_balance_notification_sent",
        "type_info": "Bool"
      },
      {
        "ordinal": 17,
        "name": "low_balance_threshold",
        "type_info": "Float4"
      },
      {
        "ordinal": 18,
        "name": "auto_topup_amount",
        "type_info": "Float4"
      },
      {
        "ordinal": 19,
        "name": "auto_topup_threshold",
        "type_info": "Float4"
      },
      {
        "ordinal": 20,
        "name": "auto_topup_monthly_limit",
        "type_info": "Float4"
      },
      {
        "ordinal": 21,
        "name": "user_type",
        "type_info": "Varchar"
      }
    ],
    "parameters": {
      "Left": [
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      true,
      true,
      false,
      false,
      false,
      false,
      true,
      true,
      true,
      false,
      false,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      false
    ]
  },
  "hash": "7a9c4d75ac58318f430fc6eac66af051862c0bef3778dd12da7204c5efa0b004"
}
