{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT id, code, title, discount_type, discount_value, min_order_amount,\n               max_uses, uses_count, role_keys, applies_to, is_active, valid_until\n        FROM coupons\n        ORDER BY created_at DESC\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "code",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "title",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "discount_type",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "discount_value",
        "type_info": "Int4"
      },
      {
        "ordinal": 5,
        "name": "min_order_amount",
        "type_info": "Int4"
      },
      {
        "ordinal": 6,
        "name": "max_uses",
        "type_info": "Int4"
      },
      {
        "ordinal": 7,
        "name": "uses_count",
        "type_info": "Int4"
      },
      {
        "ordinal": 8,
        "name": "role_keys",
        "type_info": "TextArray"
      },
      {
        "ordinal": 9,
        "name": "applies_to",
        "type_info": "Varchar"
      },
      {
        "ordinal": 10,
        "name": "is_active",
        "type_info": "Bool"
      },
      {
        "ordinal": 11,
        "name": "valid_until",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": []
    },
    "nullable": [
      false,
      false,
      true,
      false,
      false,
      false,
      true,
      false,
      false,
      false,
      false,
      true
    ]
  },
  "hash": "52c4860c2455c088153cd0871c36aa46f43b8506d81794bd55f6c19b28899fe3"
}
