{
  "id": "e4a92dc2-3c37-43a6-8e75-d4d9cce0cf31",
  "prevId": "35025e45-6724-49a4-814c-a9a41e6ee8e4",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.abandoned_carts": {
      "name": "abandoned_carts",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "cart_data": {
          "name": "cart_data",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "reminder_sent": {
          "name": "reminder_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "reminder_sent_at": {
          "name": "reminder_sent_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "converted_order_id": {
          "name": "converted_order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "abandoned_carts_user_id_idx": {
          "name": "abandoned_carts_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "abandoned_carts_reminder_sent_idx": {
          "name": "abandoned_carts_reminder_sent_idx",
          "columns": [
            {
              "expression": "reminder_sent",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "abandoned_carts_user_id_users_id_fk": {
          "name": "abandoned_carts_user_id_users_id_fk",
          "tableFrom": "abandoned_carts",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "abandoned_carts_package_id_unified_packages_id_fk": {
          "name": "abandoned_carts_package_id_unified_packages_id_fk",
          "tableFrom": "abandoned_carts",
          "tableTo": "unified_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "abandoned_carts_converted_order_id_orders_id_fk": {
          "name": "abandoned_carts_converted_order_id_orders_id_fk",
          "tableFrom": "abandoned_carts",
          "tableTo": "orders",
          "columnsFrom": [
            "converted_order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.activity_logs": {
      "name": "activity_logs",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "admin_id": {
          "name": "admin_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "action": {
          "name": "action",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "entity": {
          "name": "entity",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "entity_id": {
          "name": "entity_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "metadata": {
          "name": "metadata",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "ip_address": {
          "name": "ip_address",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "user_agent": {
          "name": "user_agent",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "activity_logs_user_id_users_id_fk": {
          "name": "activity_logs_user_id_users_id_fk",
          "tableFrom": "activity_logs",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "activity_logs_admin_id_admins_id_fk": {
          "name": "activity_logs_admin_id_admins_id_fk",
          "tableFrom": "activity_logs",
          "tableTo": "admins",
          "columnsFrom": [
            "admin_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.admins": {
      "name": "admins",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'admin'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "admins_email_unique": {
          "name": "admins_email_unique",
          "nullsNotDistinct": false,
          "columns": [
            "email"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.airalo_notifications": {
      "name": "airalo_notifications",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "iccid": {
          "name": "iccid",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "threshold": {
          "name": "threshold",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "webhook_payload": {
          "name": "webhook_payload",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true
        },
        "signature": {
          "name": "signature",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "processed": {
          "name": "processed",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "email_sent": {
          "name": "email_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "error_message": {
          "name": "error_message",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "airalo_notifications_order_id_orders_id_fk": {
          "name": "airalo_notifications_order_id_orders_id_fk",
          "tableFrom": "airalo_notifications",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_notifications_user_id_users_id_fk": {
          "name": "airalo_notifications_user_id_users_id_fk",
          "tableFrom": "airalo_notifications",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.airalo_packages": {
      "name": "airalo_packages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "airalo_id": {
          "name": "airalo_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "airalo_price": {
          "name": "airalo_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "price": {
          "name": "price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "voice_credits": {
          "name": "voice_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "sms_credits": {
          "name": "sms_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "is_popular": {
          "name": "is_popular",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_trending": {
          "name": "is_trending",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_recommended": {
          "name": "is_recommended",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_best_value": {
          "name": "is_best_value",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "sales_count": {
          "name": "sales_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "custom_image": {
          "name": "custom_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "custom_description": {
          "name": "custom_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "airalo_packages_provider_id_providers_id_fk": {
          "name": "airalo_packages_provider_id_providers_id_fk",
          "tableFrom": "airalo_packages",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_packages_destination_id_destinations_id_fk": {
          "name": "airalo_packages_destination_id_destinations_id_fk",
          "tableFrom": "airalo_packages",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_packages_region_id_regions_id_fk": {
          "name": "airalo_packages_region_id_regions_id_fk",
          "tableFrom": "airalo_packages",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "airalo_packages_airalo_id_unique": {
          "name": "airalo_packages_airalo_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "airalo_id"
          ]
        },
        "airalo_packages_slug_unique": {
          "name": "airalo_packages_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.airalo_topups": {
      "name": "airalo_topups",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "airalo_id": {
          "name": "airalo_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "parent_package_id": {
          "name": "parent_package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "parent_operator": {
          "name": "parent_operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "airalo_price": {
          "name": "airalo_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "price": {
          "name": "price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "data_hash": {
          "name": "data_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "airalo_topups_provider_id_providers_id_fk": {
          "name": "airalo_topups_provider_id_providers_id_fk",
          "tableFrom": "airalo_topups",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_topups_parent_package_id_airalo_packages_id_fk": {
          "name": "airalo_topups_parent_package_id_airalo_packages_id_fk",
          "tableFrom": "airalo_topups",
          "tableTo": "airalo_packages",
          "columnsFrom": [
            "parent_package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_topups_destination_id_destinations_id_fk": {
          "name": "airalo_topups_destination_id_destinations_id_fk",
          "tableFrom": "airalo_topups",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "airalo_topups_region_id_regions_id_fk": {
          "name": "airalo_topups_region_id_regions_id_fk",
          "tableFrom": "airalo_topups",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "airalo_topups_airalo_id_unique": {
          "name": "airalo_topups_airalo_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "airalo_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.analytics_events": {
      "name": "analytics_events",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "session_id": {
          "name": "session_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "event_type": {
          "name": "event_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "event_data": {
          "name": "event_data",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "page": {
          "name": "page",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "referrer": {
          "name": "referrer",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "user_agent": {
          "name": "user_agent",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "ip": {
          "name": "ip",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "analytics_events_event_type_idx": {
          "name": "analytics_events_event_type_idx",
          "columns": [
            {
              "expression": "event_type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "analytics_events_user_id_idx": {
          "name": "analytics_events_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "analytics_events_created_at_idx": {
          "name": "analytics_events_created_at_idx",
          "columns": [
            {
              "expression": "created_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "analytics_events_user_id_users_id_fk": {
          "name": "analytics_events_user_id_users_id_fk",
          "tableFrom": "analytics_events",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.api_keys": {
      "name": "api_keys",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "api_key_prefix": {
          "name": "api_key_prefix",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "api_key_hash": {
          "name": "api_key_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "api_secret_hash": {
          "name": "api_secret_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "enterprise_id": {
          "name": "enterprise_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "rate_limit": {
          "name": "rate_limit",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 100
        },
        "permissions": {
          "name": "permissions",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false,
          "default": "'{}'::jsonb"
        },
        "allowed_ips": {
          "name": "allowed_ips",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "last_used_at": {
          "name": "last_used_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "request_count": {
          "name": "request_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "created_by": {
          "name": "created_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "api_keys_prefix_idx": {
          "name": "api_keys_prefix_idx",
          "columns": [
            {
              "expression": "api_key_prefix",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "api_keys_hash_idx": {
          "name": "api_keys_hash_idx",
          "columns": [
            {
              "expression": "api_key_hash",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "api_keys_enterprise_idx": {
          "name": "api_keys_enterprise_idx",
          "columns": [
            {
              "expression": "enterprise_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "api_keys_enterprise_id_enterprise_accounts_id_fk": {
          "name": "api_keys_enterprise_id_enterprise_accounts_id_fk",
          "tableFrom": "api_keys",
          "tableTo": "enterprise_accounts",
          "columnsFrom": [
            "enterprise_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "api_keys_created_by_admins_id_fk": {
          "name": "api_keys_created_by_admins_id_fk",
          "tableFrom": "api_keys",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "api_keys_api_key_hash_unique": {
          "name": "api_keys_api_key_hash_unique",
          "nullsNotDistinct": false,
          "columns": [
            "api_key_hash"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.banners": {
      "name": "banners",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "title": {
          "name": "title",
          "type": "varchar(150)",
          "primaryKey": false,
          "notNull": true
        },
        "image_url": {
          "name": "image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 1
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false,
          "default": "NOW()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false,
          "default": "NOW()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "banners_package_id_unified_packages_id_fk": {
          "name": "banners_package_id_unified_packages_id_fk",
          "tableFrom": "banners",
          "tableTo": "unified_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "cascade"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.blog_posts": {
      "name": "blog_posts",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "excerpt": {
          "name": "excerpt",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "featured_image": {
          "name": "featured_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "author_id": {
          "name": "author_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "published": {
          "name": "published",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "published_at": {
          "name": "published_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "meta_description": {
          "name": "meta_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "meta_keywords": {
          "name": "meta_keywords",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "blog_posts_slug_idx": {
          "name": "blog_posts_slug_idx",
          "columns": [
            {
              "expression": "slug",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "blog_posts_published_idx": {
          "name": "blog_posts_published_idx",
          "columns": [
            {
              "expression": "published",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "blog_posts_author_id_admins_id_fk": {
          "name": "blog_posts_author_id_admins_id_fk",
          "tableFrom": "blog_posts",
          "tableTo": "admins",
          "columnsFrom": [
            "author_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "blog_posts_slug_unique": {
          "name": "blog_posts_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.bulk_orders": {
      "name": "bulk_orders",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "enterprise_account_id": {
          "name": "enterprise_account_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "quote_id": {
          "name": "quote_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "total_amount": {
          "name": "total_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "payment_method": {
          "name": "payment_method",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "payment_status": {
          "name": "payment_status",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'pending'"
        },
        "invoice_number": {
          "name": "invoice_number",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "notes": {
          "name": "notes",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "bulk_orders_enterprise_id_idx": {
          "name": "bulk_orders_enterprise_id_idx",
          "columns": [
            {
              "expression": "enterprise_account_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "bulk_orders_status_idx": {
          "name": "bulk_orders_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "bulk_orders_enterprise_account_id_enterprise_accounts_id_fk": {
          "name": "bulk_orders_enterprise_account_id_enterprise_accounts_id_fk",
          "tableFrom": "bulk_orders",
          "tableTo": "enterprise_accounts",
          "columnsFrom": [
            "enterprise_account_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "bulk_orders_quote_id_bulk_quotes_id_fk": {
          "name": "bulk_orders_quote_id_bulk_quotes_id_fk",
          "tableFrom": "bulk_orders",
          "tableTo": "bulk_quotes",
          "columnsFrom": [
            "quote_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.bulk_quotes": {
      "name": "bulk_quotes",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "enterprise_account_id": {
          "name": "enterprise_account_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "quantity": {
          "name": "quantity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "unit_price": {
          "name": "unit_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "discount_percent": {
          "name": "discount_percent",
          "type": "numeric(5, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "total_price": {
          "name": "total_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "valid_until": {
          "name": "valid_until",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "notes": {
          "name": "notes",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_by": {
          "name": "created_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "bulk_quotes_enterprise_id_idx": {
          "name": "bulk_quotes_enterprise_id_idx",
          "columns": [
            {
              "expression": "enterprise_account_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "bulk_quotes_status_idx": {
          "name": "bulk_quotes_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "bulk_quotes_enterprise_account_id_enterprise_accounts_id_fk": {
          "name": "bulk_quotes_enterprise_account_id_enterprise_accounts_id_fk",
          "tableFrom": "bulk_quotes",
          "tableTo": "enterprise_accounts",
          "columnsFrom": [
            "enterprise_account_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "bulk_quotes_package_id_unified_packages_id_fk": {
          "name": "bulk_quotes_package_id_unified_packages_id_fk",
          "tableFrom": "bulk_quotes",
          "tableTo": "unified_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "bulk_quotes_created_by_admins_id_fk": {
          "name": "bulk_quotes_created_by_admins_id_fk",
          "tableFrom": "bulk_quotes",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.country_code_mappings": {
      "name": "country_code_mappings",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "external_code": {
          "name": "external_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "internal_code": {
          "name": "internal_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "country_name": {
          "name": "country_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "code_type": {
          "name": "code_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'iso3'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "country_code_mappings_external_code_idx": {
          "name": "country_code_mappings_external_code_idx",
          "columns": [
            {
              "expression": "external_code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "country_code_mappings_internal_code_idx": {
          "name": "country_code_mappings_internal_code_idx",
          "columns": [
            {
              "expression": "internal_code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.currency_rates": {
      "name": "currency_rates",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "code": {
          "name": "code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "symbol": {
          "name": "symbol",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "conversion_rate": {
          "name": "conversion_rate",
          "type": "numeric(10, 6)",
          "primaryKey": false,
          "notNull": true
        },
        "is_default": {
          "name": "is_default",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_enabled": {
          "name": "is_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "currency_rates_code_unique": {
          "name": "currency_rates_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.custom_notifications": {
      "name": "custom_notifications",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "recipient_type": {
          "name": "recipient_type",
          "type": "varchar(20)",
          "primaryKey": false,
          "notNull": true
        },
        "recipient_user_id": {
          "name": "recipient_user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "sent_by": {
          "name": "sent_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "emails_sent": {
          "name": "emails_sent",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "emails_failed": {
          "name": "emails_failed",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "status": {
          "name": "status",
          "type": "varchar(20)",
          "primaryKey": false,
          "notNull": false,
          "default": "'pending'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.customer_segments": {
      "name": "customer_segments",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "criteria": {
          "name": "criteria",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "user_count": {
          "name": "user_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.destinations": {
      "name": "destinations",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "airalo_id": {
          "name": "airalo_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "country_code": {
          "name": "country_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "flag_emoji": {
          "name": "flag_emoji",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "image": {
          "name": "image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_territory": {
          "name": "is_territory",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "parent_country_code": {
          "name": "parent_country_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "destinations_airalo_id_unique": {
          "name": "destinations_airalo_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "airalo_id"
          ]
        },
        "destinations_slug_unique": {
          "name": "destinations_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.email_automations": {
      "name": "email_automations",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "trigger": {
          "name": "trigger",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "delay_minutes": {
          "name": "delay_minutes",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "enabled": {
          "name": "enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.email_campaigns": {
      "name": "email_campaigns",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "segment_id": {
          "name": "segment_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'draft'"
        },
        "scheduled_at": {
          "name": "scheduled_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "sent_at": {
          "name": "sent_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "recipient_count": {
          "name": "recipient_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "opened_count": {
          "name": "opened_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "clicked_count": {
          "name": "clicked_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "created_by": {
          "name": "created_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "email_campaigns_status_idx": {
          "name": "email_campaigns_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "email_campaigns_segment_id_customer_segments_id_fk": {
          "name": "email_campaigns_segment_id_customer_segments_id_fk",
          "tableFrom": "email_campaigns",
          "tableTo": "customer_segments",
          "columnsFrom": [
            "segment_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "email_campaigns_created_by_admins_id_fk": {
          "name": "email_campaigns_created_by_admins_id_fk",
          "tableFrom": "email_campaigns",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.email_subscriptions": {
      "name": "email_subscriptions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subscribed": {
          "name": "subscribed",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "unsubscribed_at": {
          "name": "unsubscribed_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "unsubscribe_reason": {
          "name": "unsubscribe_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "email_subscriptions_email_idx": {
          "name": "email_subscriptions_email_idx",
          "columns": [
            {
              "expression": "email",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "email_subscriptions_subscribed_idx": {
          "name": "email_subscriptions_subscribed_idx",
          "columns": [
            {
              "expression": "subscribed",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "email_subscriptions_user_id_users_id_fk": {
          "name": "email_subscriptions_user_id_users_id_fk",
          "tableFrom": "email_subscriptions",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.email_templates": {
      "name": "email_templates",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "event_type": {
          "name": "event_type",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "body": {
          "name": "body",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "variables": {
          "name": "variables",
          "type": "text[]",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::text[]"
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "email_templates_event_type_unique": {
          "name": "email_templates_event_type_unique",
          "nullsNotDistinct": false,
          "columns": [
            "event_type"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.enterprise_accounts": {
      "name": "enterprise_accounts",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "company_name": {
          "name": "company_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "contact_name": {
          "name": "contact_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "phone": {
          "name": "phone",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "billing_address": {
          "name": "billing_address",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "tax_id": {
          "name": "tax_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "credit_limit": {
          "name": "credit_limit",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "current_balance": {
          "name": "current_balance",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "discount_percent": {
          "name": "discount_percent",
          "type": "numeric(5, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "approved_by": {
          "name": "approved_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "approved_at": {
          "name": "approved_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "enterprise_accounts_email_idx": {
          "name": "enterprise_accounts_email_idx",
          "columns": [
            {
              "expression": "email",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_accounts_status_idx": {
          "name": "enterprise_accounts_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "enterprise_accounts_user_id_users_id_fk": {
          "name": "enterprise_accounts_user_id_users_id_fk",
          "tableFrom": "enterprise_accounts",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "enterprise_accounts_approved_by_admins_id_fk": {
          "name": "enterprise_accounts_approved_by_admins_id_fk",
          "tableFrom": "enterprise_accounts",
          "tableTo": "admins",
          "columnsFrom": [
            "approved_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "enterprise_accounts_email_unique": {
          "name": "enterprise_accounts_email_unique",
          "nullsNotDistinct": false,
          "columns": [
            "email"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.enterprise_order_allocations": {
      "name": "enterprise_order_allocations",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "bulk_order_id": {
          "name": "bulk_order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "employee_email": {
          "name": "employee_email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "employee_name": {
          "name": "employee_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'allocated'"
        },
        "distribution_method": {
          "name": "distribution_method",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "sent_at": {
          "name": "sent_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "downloaded_at": {
          "name": "downloaded_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "download_token": {
          "name": "download_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "token_expires_at": {
          "name": "token_expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "allocated_by": {
          "name": "allocated_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "enterprise_allocations_bulk_order_idx": {
          "name": "enterprise_allocations_bulk_order_idx",
          "columns": [
            {
              "expression": "bulk_order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_allocations_order_idx": {
          "name": "enterprise_allocations_order_idx",
          "columns": [
            {
              "expression": "order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_allocations_status_idx": {
          "name": "enterprise_allocations_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_allocations_bulk_order_status_idx": {
          "name": "enterprise_allocations_bulk_order_status_idx",
          "columns": [
            {
              "expression": "bulk_order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "enterprise_order_allocations_bulk_order_id_bulk_orders_id_fk": {
          "name": "enterprise_order_allocations_bulk_order_id_bulk_orders_id_fk",
          "tableFrom": "enterprise_order_allocations",
          "tableTo": "bulk_orders",
          "columnsFrom": [
            "bulk_order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "enterprise_order_allocations_order_id_orders_id_fk": {
          "name": "enterprise_order_allocations_order_id_orders_id_fk",
          "tableFrom": "enterprise_order_allocations",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "enterprise_order_allocations_allocated_by_enterprise_users_id_fk": {
          "name": "enterprise_order_allocations_allocated_by_enterprise_users_id_fk",
          "tableFrom": "enterprise_order_allocations",
          "tableTo": "enterprise_users",
          "columnsFrom": [
            "allocated_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "enterprise_order_allocations_order_id_unique": {
          "name": "enterprise_order_allocations_order_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "order_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.enterprise_sessions": {
      "name": "enterprise_sessions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "enterprise_user_id": {
          "name": "enterprise_user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "user_agent": {
          "name": "user_agent",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "ip_address": {
          "name": "ip_address",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "revoked_at": {
          "name": "revoked_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "enterprise_sessions_user_id_idx": {
          "name": "enterprise_sessions_user_id_idx",
          "columns": [
            {
              "expression": "enterprise_user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "enterprise_sessions_enterprise_user_id_enterprise_users_id_fk": {
          "name": "enterprise_sessions_enterprise_user_id_enterprise_users_id_fk",
          "tableFrom": "enterprise_sessions",
          "tableTo": "enterprise_users",
          "columnsFrom": [
            "enterprise_user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.enterprise_users": {
      "name": "enterprise_users",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "enterprise_account_id": {
          "name": "enterprise_account_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "password_hash": {
          "name": "password_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "role": {
          "name": "role",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'member'"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "totp_secret": {
          "name": "totp_secret",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "last_login_at": {
          "name": "last_login_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "last_password_change_at": {
          "name": "last_password_change_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "created_by": {
          "name": "created_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "enterprise_users_email_idx": {
          "name": "enterprise_users_email_idx",
          "columns": [
            {
              "expression": "email",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_users_account_id_idx": {
          "name": "enterprise_users_account_id_idx",
          "columns": [
            {
              "expression": "enterprise_account_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "enterprise_users_covering_idx": {
          "name": "enterprise_users_covering_idx",
          "columns": [
            {
              "expression": "enterprise_account_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "role",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "is_active",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "enterprise_users_enterprise_account_id_enterprise_accounts_id_fk": {
          "name": "enterprise_users_enterprise_account_id_enterprise_accounts_id_fk",
          "tableFrom": "enterprise_users",
          "tableTo": "enterprise_accounts",
          "columnsFrom": [
            "enterprise_account_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "enterprise_users_created_by_admins_id_fk": {
          "name": "enterprise_users_created_by_admins_id_fk",
          "tableFrom": "enterprise_users",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "enterprise_users_email_unique": {
          "name": "enterprise_users_email_unique",
          "nullsNotDistinct": false,
          "columns": [
            "email"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.esim_access_packages": {
      "name": "esim_access_packages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "esim_access_id": {
          "name": "esim_access_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "voice_credits": {
          "name": "voice_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "sms_credits": {
          "name": "sms_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "esim_access_packages_provider_id_providers_id_fk": {
          "name": "esim_access_packages_provider_id_providers_id_fk",
          "tableFrom": "esim_access_packages",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_access_packages_destination_id_destinations_id_fk": {
          "name": "esim_access_packages_destination_id_destinations_id_fk",
          "tableFrom": "esim_access_packages",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_access_packages_region_id_regions_id_fk": {
          "name": "esim_access_packages_region_id_regions_id_fk",
          "tableFrom": "esim_access_packages",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "esim_access_packages_esim_access_id_unique": {
          "name": "esim_access_packages_esim_access_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "esim_access_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.esim_access_topups": {
      "name": "esim_access_topups",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "esim_access_id": {
          "name": "esim_access_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "base_package_code": {
          "name": "base_package_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "parent_package_id": {
          "name": "parent_package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "data_hash": {
          "name": "data_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "esim_access_topups_provider_id_providers_id_fk": {
          "name": "esim_access_topups_provider_id_providers_id_fk",
          "tableFrom": "esim_access_topups",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_access_topups_parent_package_id_esim_access_packages_id_fk": {
          "name": "esim_access_topups_parent_package_id_esim_access_packages_id_fk",
          "tableFrom": "esim_access_topups",
          "tableTo": "esim_access_packages",
          "columnsFrom": [
            "parent_package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_access_topups_destination_id_destinations_id_fk": {
          "name": "esim_access_topups_destination_id_destinations_id_fk",
          "tableFrom": "esim_access_topups",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_access_topups_region_id_regions_id_fk": {
          "name": "esim_access_topups_region_id_regions_id_fk",
          "tableFrom": "esim_access_topups",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "esim_access_topups_esim_access_id_unique": {
          "name": "esim_access_topups_esim_access_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "esim_access_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.esim_go_packages": {
      "name": "esim_go_packages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "esim_go_id": {
          "name": "esim_go_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "voice_credits": {
          "name": "voice_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "sms_credits": {
          "name": "sms_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "can_topup": {
          "name": "can_topup",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "esim_go_packages_provider_id_providers_id_fk": {
          "name": "esim_go_packages_provider_id_providers_id_fk",
          "tableFrom": "esim_go_packages",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_go_packages_destination_id_destinations_id_fk": {
          "name": "esim_go_packages_destination_id_destinations_id_fk",
          "tableFrom": "esim_go_packages",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_go_packages_region_id_regions_id_fk": {
          "name": "esim_go_packages_region_id_regions_id_fk",
          "tableFrom": "esim_go_packages",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "esim_go_packages_esim_go_id_unique": {
          "name": "esim_go_packages_esim_go_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "esim_go_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.esim_go_topups": {
      "name": "esim_go_topups",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "esim_go_id": {
          "name": "esim_go_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "parent_package_id": {
          "name": "parent_package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "parent_bundle_id": {
          "name": "parent_bundle_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "data_hash": {
          "name": "data_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "esim_go_topups_provider_id_providers_id_fk": {
          "name": "esim_go_topups_provider_id_providers_id_fk",
          "tableFrom": "esim_go_topups",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_go_topups_parent_package_id_esim_go_packages_id_fk": {
          "name": "esim_go_topups_parent_package_id_esim_go_packages_id_fk",
          "tableFrom": "esim_go_topups",
          "tableTo": "esim_go_packages",
          "columnsFrom": [
            "parent_package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_go_topups_destination_id_destinations_id_fk": {
          "name": "esim_go_topups_destination_id_destinations_id_fk",
          "tableFrom": "esim_go_topups",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "esim_go_topups_region_id_regions_id_fk": {
          "name": "esim_go_topups_region_id_regions_id_fk",
          "tableFrom": "esim_go_topups",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "esim_go_topups_esim_go_id_unique": {
          "name": "esim_go_topups_esim_go_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "esim_go_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.faq_categories": {
      "name": "faq_categories",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "faq_categories_slug_unique": {
          "name": "faq_categories_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.faqs": {
      "name": "faqs",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "category_id": {
          "name": "category_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "question": {
          "name": "question",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "answer": {
          "name": "answer",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "views": {
          "name": "views",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "faqs_category_id_faq_categories_id_fk": {
          "name": "faqs_category_id_faq_categories_id_fk",
          "tableFrom": "faqs",
          "tableTo": "faq_categories",
          "columnsFrom": [
            "category_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.fcm_tokens": {
      "name": "fcm_tokens",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "token": {
          "name": "token",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "device_id": {
          "name": "device_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_type": {
          "name": "device_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_model": {
          "name": "device_model",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "last_used_at": {
          "name": "last_used_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "fcm_tokens_user_id_idx": {
          "name": "fcm_tokens_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "fcm_tokens_token_idx": {
          "name": "fcm_tokens_token_idx",
          "columns": [
            {
              "expression": "token",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "fcm_tokens_user_id_users_id_fk": {
          "name": "fcm_tokens_user_id_users_id_fk",
          "tableFrom": "fcm_tokens",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.gift_card_transactions": {
      "name": "gift_card_transactions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "gift_card_id": {
          "name": "gift_card_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "amount_used": {
          "name": "amount_used",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "balance_after": {
          "name": "balance_after",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "used_by": {
          "name": "used_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "used_at": {
          "name": "used_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "gift_card_transactions_gift_card_id_idx": {
          "name": "gift_card_transactions_gift_card_id_idx",
          "columns": [
            {
              "expression": "gift_card_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "gift_card_transactions_order_id_idx": {
          "name": "gift_card_transactions_order_id_idx",
          "columns": [
            {
              "expression": "order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "gift_card_transactions_gift_card_id_gift_cards_id_fk": {
          "name": "gift_card_transactions_gift_card_id_gift_cards_id_fk",
          "tableFrom": "gift_card_transactions",
          "tableTo": "gift_cards",
          "columnsFrom": [
            "gift_card_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "gift_card_transactions_order_id_orders_id_fk": {
          "name": "gift_card_transactions_order_id_orders_id_fk",
          "tableFrom": "gift_card_transactions",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "gift_card_transactions_used_by_users_id_fk": {
          "name": "gift_card_transactions_used_by_users_id_fk",
          "tableFrom": "gift_card_transactions",
          "tableTo": "users",
          "columnsFrom": [
            "used_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.gift_cards": {
      "name": "gift_cards",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "code": {
          "name": "code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "amount": {
          "name": "amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "balance": {
          "name": "balance",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "purchased_by": {
          "name": "purchased_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "recipient_email": {
          "name": "recipient_email",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "recipient_name": {
          "name": "recipient_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "theme": {
          "name": "theme",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'default'"
        },
        "delivery_date": {
          "name": "delivery_date",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "delivery_sent": {
          "name": "delivery_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'active'"
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "redeemed_by": {
          "name": "redeemed_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "redeemed_at": {
          "name": "redeemed_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "purchase_order_id": {
          "name": "purchase_order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_by_admin": {
          "name": "created_by_admin",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "gift_cards_code_idx": {
          "name": "gift_cards_code_idx",
          "columns": [
            {
              "expression": "code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "gift_cards_status_idx": {
          "name": "gift_cards_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "gift_cards_purchased_by_idx": {
          "name": "gift_cards_purchased_by_idx",
          "columns": [
            {
              "expression": "purchased_by",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "gift_cards_delivery_date_idx": {
          "name": "gift_cards_delivery_date_idx",
          "columns": [
            {
              "expression": "delivery_date",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "gift_cards_purchased_by_users_id_fk": {
          "name": "gift_cards_purchased_by_users_id_fk",
          "tableFrom": "gift_cards",
          "tableTo": "users",
          "columnsFrom": [
            "purchased_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "gift_cards_redeemed_by_users_id_fk": {
          "name": "gift_cards_redeemed_by_users_id_fk",
          "tableFrom": "gift_cards",
          "tableTo": "users",
          "columnsFrom": [
            "redeemed_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "gift_cards_purchase_order_id_orders_id_fk": {
          "name": "gift_cards_purchase_order_id_orders_id_fk",
          "tableFrom": "gift_cards",
          "tableTo": "orders",
          "columnsFrom": [
            "purchase_order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "gift_cards_created_by_admin_admins_id_fk": {
          "name": "gift_cards_created_by_admin_admins_id_fk",
          "tableFrom": "gift_cards",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by_admin"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "gift_cards_code_unique": {
          "name": "gift_cards_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.kyc_documents": {
      "name": "kyc_documents",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "document_type": {
          "name": "document_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "file_path": {
          "name": "file_path",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "file_name": {
          "name": "file_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "file_size": {
          "name": "file_size",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "mime_type": {
          "name": "mime_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "rejection_reason": {
          "name": "rejection_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "kyc_documents_user_id_users_id_fk": {
          "name": "kyc_documents_user_id_users_id_fk",
          "tableFrom": "kyc_documents",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.languages": {
      "name": "languages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "code": {
          "name": "code",
          "type": "varchar(10)",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "native_name": {
          "name": "native_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "flag_code": {
          "name": "flag_code",
          "type": "varchar(10)",
          "primaryKey": false,
          "notNull": false
        },
        "is_rtl": {
          "name": "is_rtl",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_enabled": {
          "name": "is_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "is_default": {
          "name": "is_default",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "sort_order": {
          "name": "sort_order",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "languages_code_idx": {
          "name": "languages_code_idx",
          "columns": [
            {
              "expression": "code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "languages_enabled_idx": {
          "name": "languages_enabled_idx",
          "columns": [
            {
              "expression": "is_enabled",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "languages_code_unique": {
          "name": "languages_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.maya_packages": {
      "name": "maya_packages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "maya_id": {
          "name": "maya_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_mb": {
          "name": "data_mb",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "data_bytes": {
          "name": "data_bytes",
          "type": "bigint",
          "primaryKey": false,
          "notNull": false
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "policy_id": {
          "name": "policy_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "policy_name": {
          "name": "policy_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "rrp_usd": {
          "name": "rrp_usd",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "rrp_eur": {
          "name": "rrp_eur",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "rrp_gbp": {
          "name": "rrp_gbp",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "data_hash": {
          "name": "data_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "maya_packages_provider_id_providers_id_fk": {
          "name": "maya_packages_provider_id_providers_id_fk",
          "tableFrom": "maya_packages",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "maya_packages_destination_id_destinations_id_fk": {
          "name": "maya_packages_destination_id_destinations_id_fk",
          "tableFrom": "maya_packages",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "maya_packages_region_id_regions_id_fk": {
          "name": "maya_packages_region_id_regions_id_fk",
          "tableFrom": "maya_packages",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "maya_packages_maya_id_unique": {
          "name": "maya_packages_maya_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "maya_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.maya_topups": {
      "name": "maya_topups",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "maya_id": {
          "name": "maya_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "parent_package_id": {
          "name": "parent_package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_mb": {
          "name": "data_mb",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "policy_id": {
          "name": "policy_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "policy_name": {
          "name": "policy_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "data_hash": {
          "name": "data_hash",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "maya_topups_provider_id_providers_id_fk": {
          "name": "maya_topups_provider_id_providers_id_fk",
          "tableFrom": "maya_topups",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "maya_topups_parent_package_id_maya_packages_id_fk": {
          "name": "maya_topups_parent_package_id_maya_packages_id_fk",
          "tableFrom": "maya_topups",
          "tableTo": "maya_packages",
          "columnsFrom": [
            "parent_package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "maya_topups_destination_id_destinations_id_fk": {
          "name": "maya_topups_destination_id_destinations_id_fk",
          "tableFrom": "maya_topups",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "maya_topups_region_id_regions_id_fk": {
          "name": "maya_topups_region_id_regions_id_fk",
          "tableFrom": "maya_topups",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "maya_topups_maya_id_unique": {
          "name": "maya_topups_maya_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "maya_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.notifications": {
      "name": "notifications",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "read": {
          "name": "read",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "metadata": {
          "name": "metadata",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "notifications_user_id_users_id_fk": {
          "name": "notifications_user_id_users_id_fk",
          "tableFrom": "notifications",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.orders": {
      "name": "orders",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "display_order_id": {
          "name": "display_order_id",
          "type": "serial",
          "primaryKey": false,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "provider_order_id": {
          "name": "provider_order_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "airalo_order_id": {
          "name": "airalo_order_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "request_id": {
          "name": "request_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "order_type": {
          "name": "order_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'single'"
        },
        "quantity": {
          "name": "quantity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 1
        },
        "iccid": {
          "name": "iccid",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "qr_code": {
          "name": "qr_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "qr_code_url": {
          "name": "qr_code_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "lpa_code": {
          "name": "lpa_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "smdp_address": {
          "name": "smdp_address",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "activation_code": {
          "name": "activation_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "direct_apple_url": {
          "name": "direct_apple_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "esim_status": {
          "name": "esim_status",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "apn_type": {
          "name": "apn_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "apn_value": {
          "name": "apn_value",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_roaming": {
          "name": "is_roaming",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "ordered_by": {
          "name": "ordered_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "assigned_by": {
          "name": "assigned_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "webhook_received_at": {
          "name": "webhook_received_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "bulk_order_id": {
          "name": "bulk_order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "retry_count": {
          "name": "retry_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "last_retry_at": {
          "name": "last_retry_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "last_status_check": {
          "name": "last_status_check",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "failure_reason": {
          "name": "failure_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "price": {
          "name": "price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "airalo_price": {
          "name": "airalo_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "order_currency": {
          "name": "order_currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "activated_at": {
          "name": "activated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "usage_data": {
          "name": "usage_data",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "installation_sent": {
          "name": "installation_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "stripe_payment_intent_id": {
          "name": "stripe_payment_intent_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "payment_method": {
          "name": "payment_method",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'card'"
        },
        "guest_access_token": {
          "name": "guest_access_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "guest_email": {
          "name": "guest_email",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "guest_phone": {
          "name": "guest_phone",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "original_provider_id": {
          "name": "original_provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "final_provider_id": {
          "name": "final_provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "failover_attempts": {
          "name": "failover_attempts",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "order_source": {
          "name": "order_source",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "'website'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "orders_user_id_users_id_fk": {
          "name": "orders_user_id_users_id_fk",
          "tableFrom": "orders",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_package_id_unified_packages_id_fk": {
          "name": "orders_package_id_unified_packages_id_fk",
          "tableFrom": "orders",
          "tableTo": "unified_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_provider_id_providers_id_fk": {
          "name": "orders_provider_id_providers_id_fk",
          "tableFrom": "orders",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_ordered_by_admins_id_fk": {
          "name": "orders_ordered_by_admins_id_fk",
          "tableFrom": "orders",
          "tableTo": "admins",
          "columnsFrom": [
            "ordered_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_assigned_by_admins_id_fk": {
          "name": "orders_assigned_by_admins_id_fk",
          "tableFrom": "orders",
          "tableTo": "admins",
          "columnsFrom": [
            "assigned_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_original_provider_id_providers_id_fk": {
          "name": "orders_original_provider_id_providers_id_fk",
          "tableFrom": "orders",
          "tableTo": "providers",
          "columnsFrom": [
            "original_provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "orders_final_provider_id_providers_id_fk": {
          "name": "orders_final_provider_id_providers_id_fk",
          "tableFrom": "orders",
          "tableTo": "providers",
          "columnsFrom": [
            "final_provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "orders_display_order_id_unique": {
          "name": "orders_display_order_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "display_order_id"
          ]
        },
        "orders_guest_access_token_unique": {
          "name": "orders_guest_access_token_unique",
          "nullsNotDistinct": false,
          "columns": [
            "guest_access_token"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.otp_codes": {
      "name": "otp_codes",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "code": {
          "name": "code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "purpose": {
          "name": "purpose",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'login'"
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "verified": {
          "name": "verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "attempts": {
          "name": "attempts",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.pages": {
      "name": "pages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "slug": {
          "name": "slug",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "meta_title": {
          "name": "meta_title",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "meta_description": {
          "name": "meta_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_published": {
          "name": "is_published",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "pages_slug_unique": {
          "name": "pages_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payment_gateways": {
      "name": "payment_gateways",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider": {
          "name": "provider",
          "type": "payment_provider",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true
        },
        "display_name": {
          "name": "display_name",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true
        },
        "is_enabled": {
          "name": "is_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "public_key": {
          "name": "public_key",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "secret_key": {
          "name": "secret_key",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "webhook_secret": {
          "name": "webhook_secret",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "config": {
          "name": "config",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false,
          "default": "'{}'::jsonb"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.payment_settings": {
      "name": "payment_settings",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "method": {
          "name": "method",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "enabled": {
          "name": "enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "minimum_amount": {
          "name": "minimum_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "settings": {
          "name": "settings",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "payment_settings_method_unique": {
          "name": "payment_settings_method_unique",
          "nullsNotDistinct": false,
          "columns": [
            "method"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.platform_settings": {
      "name": "platform_settings",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "category": {
          "name": "category",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'general'"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_by": {
          "name": "updated_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "platform_settings_updated_by_admins_id_fk": {
          "name": "platform_settings_updated_by_admins_id_fk",
          "tableFrom": "platform_settings",
          "tableTo": "admins",
          "columnsFrom": [
            "updated_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "platform_settings_key_unique": {
          "name": "platform_settings_key_unique",
          "nullsNotDistinct": false,
          "columns": [
            "key"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.price_brackets": {
      "name": "price_brackets",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "min_price": {
          "name": "min_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "max_price": {
          "name": "max_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "product_id": {
          "name": "product_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "android_status": {
          "name": "android_status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "android_sync_error": {
          "name": "android_sync_error",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "android_last_sync_at": {
          "name": "android_last_sync_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "apple_status": {
          "name": "apple_status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "apple_sync_error": {
          "name": "apple_sync_error",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "apple_last_sync_at": {
          "name": "apple_last_sync_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.privacy_policies": {
      "name": "privacy_policies",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "version": {
          "name": "version",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 1
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.provider_webhooks": {
      "name": "provider_webhooks",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "iccid": {
          "name": "iccid",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "threshold": {
          "name": "threshold",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "webhook_payload": {
          "name": "webhook_payload",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true
        },
        "signature": {
          "name": "signature",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "processed": {
          "name": "processed",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "email_sent": {
          "name": "email_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "in_app_notification_sent": {
          "name": "in_app_notification_sent",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "error_message": {
          "name": "error_message",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "provider_webhooks_provider_id_providers_id_fk": {
          "name": "provider_webhooks_provider_id_providers_id_fk",
          "tableFrom": "provider_webhooks",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "provider_webhooks_order_id_orders_id_fk": {
          "name": "provider_webhooks_order_id_orders_id_fk",
          "tableFrom": "provider_webhooks",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "provider_webhooks_user_id_users_id_fk": {
          "name": "provider_webhooks_user_id_users_id_fk",
          "tableFrom": "provider_webhooks",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.providers": {
      "name": "providers",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "api_base_url": {
          "name": "api_base_url",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "enabled": {
          "name": "enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_preferred": {
          "name": "is_preferred",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "pricing_margin": {
          "name": "pricing_margin",
          "type": "numeric(5, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'15.00'"
        },
        "sync_interval_minutes": {
          "name": "sync_interval_minutes",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 60
        },
        "last_sync_at": {
          "name": "last_sync_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "api_rate_limit_per_hour": {
          "name": "api_rate_limit_per_hour",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 1000
        },
        "webhook_secret": {
          "name": "webhook_secret",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "failover_priority": {
          "name": "failover_priority",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 100
        },
        "min_margin_percent": {
          "name": "min_margin_percent",
          "type": "numeric(5, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'0.00'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "providers_slug_unique": {
          "name": "providers_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.referral_program": {
      "name": "referral_program",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "referral_code": {
          "name": "referral_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "total_referrals": {
          "name": "total_referrals",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "total_earnings": {
          "name": "total_earnings",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'0.00'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "referral_program_user_id_idx": {
          "name": "referral_program_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "referral_program_code_idx": {
          "name": "referral_program_code_idx",
          "columns": [
            {
              "expression": "referral_code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "referral_program_user_id_users_id_fk": {
          "name": "referral_program_user_id_users_id_fk",
          "tableFrom": "referral_program",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "referral_program_referral_code_unique": {
          "name": "referral_program_referral_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "referral_code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.referral_settings": {
      "name": "referral_settings",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "enabled": {
          "name": "enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "reward_type": {
          "name": "reward_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'percentage'"
        },
        "reward_value": {
          "name": "reward_value",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'10.00'"
        },
        "min_order_amount": {
          "name": "min_order_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'0.00'"
        },
        "referred_user_discount": {
          "name": "referred_user_discount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'5.00'"
        },
        "expiry_days": {
          "name": "expiry_days",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 90
        },
        "terms_and_conditions": {
          "name": "terms_and_conditions",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.referral_transactions": {
      "name": "referral_transactions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "amount": {
          "name": "amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "balance_before": {
          "name": "balance_before",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "balance_after": {
          "name": "balance_after",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "referral_id": {
          "name": "referral_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "referral_transactions_user_id_idx": {
          "name": "referral_transactions_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "referral_transactions_type_idx": {
          "name": "referral_transactions_type_idx",
          "columns": [
            {
              "expression": "type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "referral_transactions_order_id_idx": {
          "name": "referral_transactions_order_id_idx",
          "columns": [
            {
              "expression": "order_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "referral_transactions_user_id_users_id_fk": {
          "name": "referral_transactions_user_id_users_id_fk",
          "tableFrom": "referral_transactions",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "referral_transactions_referral_id_referrals_id_fk": {
          "name": "referral_transactions_referral_id_referrals_id_fk",
          "tableFrom": "referral_transactions",
          "tableTo": "referrals",
          "columnsFrom": [
            "referral_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "referral_transactions_order_id_orders_id_fk": {
          "name": "referral_transactions_order_id_orders_id_fk",
          "tableFrom": "referral_transactions",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.referrals": {
      "name": "referrals",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "referrer_id": {
          "name": "referrer_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "referred_id": {
          "name": "referred_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "referral_code": {
          "name": "referral_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "reward_amount": {
          "name": "reward_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "reward_paid": {
          "name": "reward_paid",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "referred_order_id": {
          "name": "referred_order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "completed_at": {
          "name": "completed_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "referrals_referrer_id_idx": {
          "name": "referrals_referrer_id_idx",
          "columns": [
            {
              "expression": "referrer_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "referrals_referred_id_idx": {
          "name": "referrals_referred_id_idx",
          "columns": [
            {
              "expression": "referred_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "referrals_status_idx": {
          "name": "referrals_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "referrals_referrer_id_users_id_fk": {
          "name": "referrals_referrer_id_users_id_fk",
          "tableFrom": "referrals",
          "tableTo": "users",
          "columnsFrom": [
            "referrer_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "referrals_referred_id_users_id_fk": {
          "name": "referrals_referred_id_users_id_fk",
          "tableFrom": "referrals",
          "tableTo": "users",
          "columnsFrom": [
            "referred_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "referrals_referred_order_id_orders_id_fk": {
          "name": "referrals_referred_order_id_orders_id_fk",
          "tableFrom": "referrals",
          "tableTo": "orders",
          "columnsFrom": [
            "referred_order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.regions": {
      "name": "regions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "airalo_id": {
          "name": "airalo_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "countries": {
          "name": "countries",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "image": {
          "name": "image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "regions_airalo_id_unique": {
          "name": "regions_airalo_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "airalo_id"
          ]
        },
        "regions_slug_unique": {
          "name": "regions_slug_unique",
          "nullsNotDistinct": false,
          "columns": [
            "slug"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.reviews": {
      "name": "reviews",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "rating": {
          "name": "rating",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "comment": {
          "name": "comment",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "pros": {
          "name": "pros",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "cons": {
          "name": "cons",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "is_verified_purchase": {
          "name": "is_verified_purchase",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_approved": {
          "name": "is_approved",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "approved_by": {
          "name": "approved_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "approved_at": {
          "name": "approved_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "helpful_count": {
          "name": "helpful_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "reviews_package_id_idx": {
          "name": "reviews_package_id_idx",
          "columns": [
            {
              "expression": "package_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "reviews_user_id_idx": {
          "name": "reviews_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "reviews_rating_idx": {
          "name": "reviews_rating_idx",
          "columns": [
            {
              "expression": "rating",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "reviews_is_approved_idx": {
          "name": "reviews_is_approved_idx",
          "columns": [
            {
              "expression": "is_approved",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "reviews_package_id_unified_packages_id_fk": {
          "name": "reviews_package_id_unified_packages_id_fk",
          "tableFrom": "reviews",
          "tableTo": "unified_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "reviews_user_id_users_id_fk": {
          "name": "reviews_user_id_users_id_fk",
          "tableFrom": "reviews",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "reviews_order_id_orders_id_fk": {
          "name": "reviews_order_id_orders_id_fk",
          "tableFrom": "reviews",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "reviews_approved_by_admins_id_fk": {
          "name": "reviews_approved_by_admins_id_fk",
          "tableFrom": "reviews",
          "tableTo": "admins",
          "columnsFrom": [
            "approved_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.settings": {
      "name": "settings",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "category": {
          "name": "category",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "settings_key_unique": {
          "name": "settings_key_unique",
          "nullsNotDistinct": false,
          "columns": [
            "key"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.terms_conditions": {
      "name": "terms_conditions",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "content": {
          "name": "content",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "version": {
          "name": "version",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.ticket_messages": {
      "name": "ticket_messages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "ticket_id": {
          "name": "ticket_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "sender_id": {
          "name": "sender_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "sender_type": {
          "name": "sender_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "sender_name": {
          "name": "sender_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_internal": {
          "name": "is_internal",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "ticket_messages_ticket_id_tickets_id_fk": {
          "name": "ticket_messages_ticket_id_tickets_id_fk",
          "tableFrom": "ticket_messages",
          "tableTo": "tickets",
          "columnsFrom": [
            "ticket_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.ticket_replies": {
      "name": "ticket_replies",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "ticket_id": {
          "name": "ticket_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "admin_id": {
          "name": "admin_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "message": {
          "name": "message",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_internal": {
          "name": "is_internal",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "ticket_replies_ticket_id_tickets_id_fk": {
          "name": "ticket_replies_ticket_id_tickets_id_fk",
          "tableFrom": "ticket_replies",
          "tableTo": "tickets",
          "columnsFrom": [
            "ticket_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "ticket_replies_user_id_users_id_fk": {
          "name": "ticket_replies_user_id_users_id_fk",
          "tableFrom": "ticket_replies",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "ticket_replies_admin_id_admins_id_fk": {
          "name": "ticket_replies_admin_id_admins_id_fk",
          "tableFrom": "ticket_replies",
          "tableTo": "admins",
          "columnsFrom": [
            "admin_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.tickets": {
      "name": "tickets",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "ticket_status",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'open'"
        },
        "priority": {
          "name": "priority",
          "type": "ticket_priority",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'medium'"
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "user_name": {
          "name": "user_name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "assigned_to_id": {
          "name": "assigned_to_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "assigned_to_name": {
          "name": "assigned_to_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "resolved_at": {
          "name": "resolved_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "closed_at": {
          "name": "closed_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "tickets_user_id_users_id_fk": {
          "name": "tickets_user_id_users_id_fk",
          "tableFrom": "tickets",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "tickets_assigned_to_id_admins_id_fk": {
          "name": "tickets_assigned_to_id_admins_id_fk",
          "tableFrom": "tickets",
          "tableTo": "admins",
          "columnsFrom": [
            "assigned_to_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.topups": {
      "name": "topups",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "display_topup_id": {
          "name": "display_topup_id",
          "type": "serial",
          "primaryKey": false,
          "notNull": true
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "package_id": {
          "name": "package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "iccid": {
          "name": "iccid",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "airalo_topup_id": {
          "name": "airalo_topup_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "request_id": {
          "name": "request_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "price": {
          "name": "price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "airalo_price": {
          "name": "airalo_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "webhook_received_at": {
          "name": "webhook_received_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "failure_reason": {
          "name": "failure_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "stripe_payment_intent_id": {
          "name": "stripe_payment_intent_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "topups_order_id_orders_id_fk": {
          "name": "topups_order_id_orders_id_fk",
          "tableFrom": "topups",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "topups_user_id_users_id_fk": {
          "name": "topups_user_id_users_id_fk",
          "tableFrom": "topups",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "topups_package_id_airalo_packages_id_fk": {
          "name": "topups_package_id_airalo_packages_id_fk",
          "tableFrom": "topups",
          "tableTo": "airalo_packages",
          "columnsFrom": [
            "package_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "topups_display_topup_id_unique": {
          "name": "topups_display_topup_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "display_topup_id"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.translation_keys": {
      "name": "translation_keys",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "namespace": {
          "name": "namespace",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": true
        },
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "translation_keys_namespace_key_idx": {
          "name": "translation_keys_namespace_key_idx",
          "columns": [
            {
              "expression": "namespace",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "key",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "translation_keys_namespace_idx": {
          "name": "translation_keys_namespace_idx",
          "columns": [
            {
              "expression": "namespace",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.translation_values": {
      "name": "translation_values",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "key_id": {
          "name": "key_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "language_id": {
          "name": "language_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_verified": {
          "name": "is_verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "verified_by": {
          "name": "verified_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "verified_at": {
          "name": "verified_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "translation_values_key_language_idx": {
          "name": "translation_values_key_language_idx",
          "columns": [
            {
              "expression": "key_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "language_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "translation_values_language_idx": {
          "name": "translation_values_language_idx",
          "columns": [
            {
              "expression": "language_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "translation_values_key_id_translation_keys_id_fk": {
          "name": "translation_values_key_id_translation_keys_id_fk",
          "tableFrom": "translation_values",
          "tableTo": "translation_keys",
          "columnsFrom": [
            "key_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "translation_values_language_id_languages_id_fk": {
          "name": "translation_values_language_id_languages_id_fk",
          "tableFrom": "translation_values",
          "tableTo": "languages",
          "columnsFrom": [
            "language_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "translation_values_verified_by_admins_id_fk": {
          "name": "translation_values_verified_by_admins_id_fk",
          "tableFrom": "translation_values",
          "tableTo": "admins",
          "columnsFrom": [
            "verified_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.unified_packages": {
      "name": "unified_packages",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "provider_package_table": {
          "name": "provider_package_table",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "provider_package_id": {
          "name": "provider_package_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true
        },
        "destination_id": {
          "name": "destination_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "region_id": {
          "name": "region_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "slug": {
          "name": "slug",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "data_amount": {
          "name": "data_amount",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "validity": {
          "name": "validity",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "wholesale_price": {
          "name": "wholesale_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "retail_price": {
          "name": "retail_price",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "currency": {
          "name": "currency",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'USD'"
        },
        "operator": {
          "name": "operator",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "operator_image": {
          "name": "operator_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "coverage": {
          "name": "coverage",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "voice_credits": {
          "name": "voice_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "sms_credits": {
          "name": "sms_credits",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "is_unlimited": {
          "name": "is_unlimited",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "data_mb": {
          "name": "data_mb",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "validity_days": {
          "name": "validity_days",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "voice_minutes": {
          "name": "voice_minutes",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "sms_count": {
          "name": "sms_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 0
        },
        "country_code": {
          "name": "country_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "country_name": {
          "name": "country_name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "package_group_key": {
          "name": "package_group_key",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_enabled": {
          "name": "is_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_best_price": {
          "name": "is_best_price",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "manual_override": {
          "name": "manual_override",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_popular": {
          "name": "is_popular",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_trending": {
          "name": "is_trending",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_recommended": {
          "name": "is_recommended",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_best_value": {
          "name": "is_best_value",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "sales_count": {
          "name": "sales_count",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "custom_image": {
          "name": "custom_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "custom_description": {
          "name": "custom_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "unified_packages_title_idx": {
          "name": "unified_packages_title_idx",
          "columns": [
            {
              "expression": "title",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_operator_idx": {
          "name": "unified_packages_operator_idx",
          "columns": [
            {
              "expression": "operator",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_retail_price_idx": {
          "name": "unified_packages_retail_price_idx",
          "columns": [
            {
              "expression": "retail_price",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_data_mb_idx": {
          "name": "unified_packages_data_mb_idx",
          "columns": [
            {
              "expression": "data_mb",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_validity_days_idx": {
          "name": "unified_packages_validity_days_idx",
          "columns": [
            {
              "expression": "validity_days",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_destination_id_idx": {
          "name": "unified_packages_destination_id_idx",
          "columns": [
            {
              "expression": "destination_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_region_id_idx": {
          "name": "unified_packages_region_id_idx",
          "columns": [
            {
              "expression": "region_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_type_idx": {
          "name": "unified_packages_type_idx",
          "columns": [
            {
              "expression": "type",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_is_enabled_idx": {
          "name": "unified_packages_is_enabled_idx",
          "columns": [
            {
              "expression": "is_enabled",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_country_code_idx": {
          "name": "unified_packages_country_code_idx",
          "columns": [
            {
              "expression": "country_code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "unified_packages_package_group_key_idx": {
          "name": "unified_packages_package_group_key_idx",
          "columns": [
            {
              "expression": "package_group_key",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "unified_packages_provider_id_providers_id_fk": {
          "name": "unified_packages_provider_id_providers_id_fk",
          "tableFrom": "unified_packages",
          "tableTo": "providers",
          "columnsFrom": [
            "provider_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "unified_packages_destination_id_destinations_id_fk": {
          "name": "unified_packages_destination_id_destinations_id_fk",
          "tableFrom": "unified_packages",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "unified_packages_region_id_regions_id_fk": {
          "name": "unified_packages_region_id_regions_id_fk",
          "tableFrom": "unified_packages",
          "tableTo": "regions",
          "columnsFrom": [
            "region_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.users": {
      "name": "users",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "display_user_id": {
          "name": "display_user_id",
          "type": "serial",
          "primaryKey": false,
          "notNull": true
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "phone": {
          "name": "phone",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "address": {
          "name": "address",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "hashed_password": {
          "name": "hashed_password",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "password_set_at": {
          "name": "password_set_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "last_password_login_at": {
          "name": "last_password_login_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "kyc_status": {
          "name": "kyc_status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'pending'"
        },
        "kyc_submitted_at": {
          "name": "kyc_submitted_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "kyc_reviewed_at": {
          "name": "kyc_reviewed_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "kyc_reviewed_by": {
          "name": "kyc_reviewed_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "kyc_rejection_reason": {
          "name": "kyc_rejection_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "fcm_token": {
          "name": "fcm_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "image_path": {
          "name": "image_path",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "deviceid": {
          "name": "deviceid",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_type": {
          "name": "device_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_model": {
          "name": "device_model",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "app_version": {
          "name": "app_version",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_manufacturer": {
          "name": "device_manufacturer",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "device_location": {
          "name": "device_location",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_from_google": {
          "name": "is_from_google",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "notify_low_data": {
          "name": "notify_low_data",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "notify_expiring": {
          "name": "notify_expiring",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "last_low_data_notified_at": {
          "name": "last_low_data_notified_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "last_low_data_level": {
          "name": "last_low_data_level",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "destination": {
          "name": "destination",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "referral_balance": {
          "name": "referral_balance",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true,
          "default": "'0.00'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "users_kyc_reviewed_by_admins_id_fk": {
          "name": "users_kyc_reviewed_by_admins_id_fk",
          "tableFrom": "users",
          "tableTo": "admins",
          "columnsFrom": [
            "kyc_reviewed_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "users_currency_currency_rates_id_fk": {
          "name": "users_currency_currency_rates_id_fk",
          "tableFrom": "users",
          "tableTo": "currency_rates",
          "columnsFrom": [
            "currency"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "cascade"
        },
        "users_destination_destinations_id_fk": {
          "name": "users_destination_destinations_id_fk",
          "tableFrom": "users",
          "tableTo": "destinations",
          "columnsFrom": [
            "destination"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "cascade"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "users_display_user_id_unique": {
          "name": "users_display_user_id_unique",
          "nullsNotDistinct": false,
          "columns": [
            "display_user_id"
          ]
        },
        "users_email_unique": {
          "name": "users_email_unique",
          "nullsNotDistinct": false,
          "columns": [
            "email"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.voucher_codes": {
      "name": "voucher_codes",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "code": {
          "name": "code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "value": {
          "name": "value",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "min_purchase_amount": {
          "name": "min_purchase_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false,
          "default": "'0.00'"
        },
        "max_discount_amount": {
          "name": "max_discount_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": false
        },
        "max_uses": {
          "name": "max_uses",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        },
        "per_user_limit": {
          "name": "per_user_limit",
          "type": "integer",
          "primaryKey": false,
          "notNull": false,
          "default": 1
        },
        "current_uses": {
          "name": "current_uses",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "valid_from": {
          "name": "valid_from",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "valid_until": {
          "name": "valid_until",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'active'"
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "target_countries": {
          "name": "target_countries",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "target_regions": {
          "name": "target_regions",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "target_packages": {
          "name": "target_packages",
          "type": "text[]",
          "primaryKey": false,
          "notNull": false
        },
        "first_time_only": {
          "name": "first_time_only",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "is_stackable": {
          "name": "is_stackable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "created_by": {
          "name": "created_by",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "voucher_codes_code_idx": {
          "name": "voucher_codes_code_idx",
          "columns": [
            {
              "expression": "code",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "voucher_codes_status_idx": {
          "name": "voucher_codes_status_idx",
          "columns": [
            {
              "expression": "status",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "voucher_codes_created_by_admins_id_fk": {
          "name": "voucher_codes_created_by_admins_id_fk",
          "tableFrom": "voucher_codes",
          "tableTo": "admins",
          "columnsFrom": [
            "created_by"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "voucher_codes_code_unique": {
          "name": "voucher_codes_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.voucher_usage": {
      "name": "voucher_usage",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "voucher_id": {
          "name": "voucher_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "order_id": {
          "name": "order_id",
          "type": "varchar",
          "primaryKey": false,
          "notNull": false
        },
        "discount_amount": {
          "name": "discount_amount",
          "type": "numeric(10, 2)",
          "primaryKey": false,
          "notNull": true
        },
        "used_at": {
          "name": "used_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "voucher_usage_voucher_id_idx": {
          "name": "voucher_usage_voucher_id_idx",
          "columns": [
            {
              "expression": "voucher_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "voucher_usage_user_id_idx": {
          "name": "voucher_usage_user_id_idx",
          "columns": [
            {
              "expression": "user_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "voucher_usage_voucher_id_voucher_codes_id_fk": {
          "name": "voucher_usage_voucher_id_voucher_codes_id_fk",
          "tableFrom": "voucher_usage",
          "tableTo": "voucher_codes",
          "columnsFrom": [
            "voucher_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "voucher_usage_user_id_users_id_fk": {
          "name": "voucher_usage_user_id_users_id_fk",
          "tableFrom": "voucher_usage",
          "tableTo": "users",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "voucher_usage_order_id_orders_id_fk": {
          "name": "voucher_usage_order_id_orders_id_fk",
          "tableFrom": "voucher_usage",
          "tableTo": "orders",
          "columnsFrom": [
            "order_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {
    "public.payment_provider": {
      "name": "payment_provider",
      "schema": "public",
      "values": [
        "stripe",
        "razorpay",
        "paypal",
        "paystack"
      ]
    },
    "public.ticket_priority": {
      "name": "ticket_priority",
      "schema": "public",
      "values": [
        "low",
        "medium",
        "high",
        "urgent",
        "normal"
      ]
    },
    "public.ticket_status": {
      "name": "ticket_status",
      "schema": "public",
      "values": [
        "open",
        "in_progress",
        "resolved",
        "closed"
      ]
    }
  },
  "schemas": {},
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}