{
  "id": "ae4e4dab-7030-47e1-a802-5155c9871ac0",
  "prevId": "97a153e9-d6ce-4cb3-a834-a3f6d713b4bf",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "catalog.attribute_set_attributes": {
      "name": "attribute_set_attributes",
      "schema": "catalog",
      "columns": {
        "attribute_set_id": {
          "name": "attribute_set_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "attribute_code": {
          "name": "attribute_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_required": {
          "name": "is_required",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {
        "attribute_set_attributes_attribute_set_id_attribute_sets_attribute_set_id_fk": {
          "name": "attribute_set_attributes_attribute_set_id_attribute_sets_attribute_set_id_fk",
          "tableFrom": "attribute_set_attributes",
          "tableTo": "attribute_sets",
          "schemaTo": "catalog",
          "columnsFrom": [
            "attribute_set_id"
          ],
          "columnsTo": [
            "attribute_set_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "attribute_set_attributes_attribute_set_id_attribute_code_pk": {
          "name": "attribute_set_attributes_attribute_set_id_attribute_code_pk",
          "columns": [
            "attribute_set_id",
            "attribute_code"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.attribute_sets": {
      "name": "attribute_sets",
      "schema": "catalog",
      "columns": {
        "attribute_set_id": {
          "name": "attribute_set_id",
          "type": "integer",
          "primaryKey": true,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.attributes": {
      "name": "attributes",
      "schema": "catalog",
      "columns": {
        "attribute_code": {
          "name": "attribute_code",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "attribute_id": {
          "name": "attribute_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "label": {
          "name": "label",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "frontend_input": {
          "name": "frontend_input",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "is_required": {
          "name": "is_required",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        },
        "is_user_defined": {
          "name": "is_user_defined",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        },
        "scope": {
          "name": "scope",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "options": {
          "name": "options",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true,
          "default": "'[]'::jsonb"
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.audit_log": {
      "name": "audit_log",
      "schema": "ops",
      "columns": {
        "id": {
          "name": "id",
          "type": "bigserial",
          "primaryKey": true,
          "notNull": true
        },
        "at": {
          "name": "at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "client_id": {
          "name": "client_id",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "tool": {
          "name": "tool",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "args": {
          "name": "args",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::jsonb"
        },
        "outcome": {
          "name": "outcome",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "error": {
          "name": "error",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "duration_ms": {
          "name": "duration_ms",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {
        "audit_log_at_idx": {
          "name": "audit_log_at_idx",
          "columns": [
            {
              "expression": "at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "audit_log_subject_idx": {
          "name": "audit_log_subject_idx",
          "columns": [
            {
              "expression": "subject",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.categories": {
      "name": "categories",
      "schema": "catalog",
      "columns": {
        "category_id": {
          "name": "category_id",
          "type": "integer",
          "primaryKey": true,
          "notNull": true
        },
        "parent_id": {
          "name": "parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "path": {
          "name": "path",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "level": {
          "name": "level",
          "type": "smallint",
          "primaryKey": false,
          "notNull": true
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "categories_parent_idx": {
          "name": "categories_parent_idx",
          "columns": [
            {
              "expression": "parent_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.category_store_data": {
      "name": "category_store_data",
      "schema": "catalog",
      "columns": {
        "category_id": {
          "name": "category_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "store_id": {
          "name": "store_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "url_key": {
          "name": "url_key",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        },
        "include_in_menu": {
          "name": "include_in_menu",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {
        "category_store_data_category_id_categories_category_id_fk": {
          "name": "category_store_data_category_id_categories_category_id_fk",
          "tableFrom": "category_store_data",
          "tableTo": "categories",
          "schemaTo": "catalog",
          "columnsFrom": [
            "category_id"
          ],
          "columnsTo": [
            "category_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "category_store_data_category_id_store_id_pk": {
          "name": "category_store_data_category_id_store_id_pk",
          "columns": [
            "category_id",
            "store_id"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.inventory_salable": {
      "name": "inventory_salable",
      "schema": "catalog",
      "columns": {
        "sku": {
          "name": "sku",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "stock_id": {
          "name": "stock_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "salable_qty": {
          "name": "salable_qty",
          "type": "numeric(14, 4)",
          "primaryKey": false,
          "notNull": false
        },
        "is_salable": {
          "name": "is_salable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false
        },
        "checked_at": {
          "name": "checked_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "inventory_salable_sku_stock_id_pk": {
          "name": "inventory_salable_sku_stock_id_pk",
          "columns": [
            "sku",
            "stock_id"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.inventory_source_items": {
      "name": "inventory_source_items",
      "schema": "catalog",
      "columns": {
        "sku": {
          "name": "sku",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "source_code": {
          "name": "source_code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "quantity": {
          "name": "quantity",
          "type": "numeric(14, 4)",
          "primaryKey": false,
          "notNull": true
        },
        "in_stock": {
          "name": "in_stock",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "inventory_source_items_sku_source_code_pk": {
          "name": "inventory_source_items_sku_source_code_pk",
          "columns": [
            "sku",
            "source_code"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.oauth_clients": {
      "name": "oauth_clients",
      "schema": "ops",
      "columns": {
        "client_id": {
          "name": "client_id",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "info": {
          "name": "info",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.oauth_codes": {
      "name": "oauth_codes",
      "schema": "ops",
      "columns": {
        "code_hash": {
          "name": "code_hash",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "client_id": {
          "name": "client_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "scopes": {
          "name": "scopes",
          "type": "text[]",
          "primaryKey": false,
          "notNull": true
        },
        "code_challenge": {
          "name": "code_challenge",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "redirect_uri": {
          "name": "redirect_uri",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "resource": {
          "name": "resource",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true
        },
        "used_at": {
          "name": "used_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.oauth_tokens": {
      "name": "oauth_tokens",
      "schema": "ops",
      "columns": {
        "token_hash": {
          "name": "token_hash",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "kind": {
          "name": "kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "client_id": {
          "name": "client_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "scopes": {
          "name": "scopes",
          "type": "text[]",
          "primaryKey": false,
          "notNull": true
        },
        "resource": {
          "name": "resource",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true
        },
        "revoked_at": {
          "name": "revoked_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "oauth_tokens_subject_idx": {
          "name": "oauth_tokens_subject_idx",
          "columns": [
            {
              "expression": "subject",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "oauth_tokens_expires_idx": {
          "name": "oauth_tokens_expires_idx",
          "columns": [
            {
              "expression": "expires_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.product_categories": {
      "name": "product_categories",
      "schema": "catalog",
      "columns": {
        "product_id": {
          "name": "product_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "category_id": {
          "name": "category_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        }
      },
      "indexes": {
        "product_categories_category_idx": {
          "name": "product_categories_category_idx",
          "columns": [
            {
              "expression": "category_id",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "product_categories_product_id_products_product_id_fk": {
          "name": "product_categories_product_id_products_product_id_fk",
          "tableFrom": "product_categories",
          "tableTo": "products",
          "schemaTo": "catalog",
          "columnsFrom": [
            "product_id"
          ],
          "columnsTo": [
            "product_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "product_categories_product_id_category_id_pk": {
          "name": "product_categories_product_id_category_id_pk",
          "columns": [
            "product_id",
            "category_id"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.product_images": {
      "name": "product_images",
      "schema": "catalog",
      "columns": {
        "product_id": {
          "name": "product_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "file": {
          "name": "file",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "label": {
          "name": "label",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        },
        "roles": {
          "name": "roles",
          "type": "text[]",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::text[]"
        },
        "disabled": {
          "name": "disabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "media_type": {
          "name": "media_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'image'"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "product_images_product_id_products_product_id_fk": {
          "name": "product_images_product_id_products_product_id_fk",
          "tableFrom": "product_images",
          "tableTo": "products",
          "schemaTo": "catalog",
          "columnsFrom": [
            "product_id"
          ],
          "columnsTo": [
            "product_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "product_images_product_id_file_pk": {
          "name": "product_images_product_id_file_pk",
          "columns": [
            "product_id",
            "file"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.product_links": {
      "name": "product_links",
      "schema": "catalog",
      "columns": {
        "product_id": {
          "name": "product_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "link_type": {
          "name": "link_type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "linked_sku": {
          "name": "linked_sku",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "position": {
          "name": "position",
          "type": "integer",
          "primaryKey": false,
          "notNull": true,
          "default": 0
        }
      },
      "indexes": {},
      "foreignKeys": {
        "product_links_product_id_products_product_id_fk": {
          "name": "product_links_product_id_products_product_id_fk",
          "tableFrom": "product_links",
          "tableTo": "products",
          "schemaTo": "catalog",
          "columnsFrom": [
            "product_id"
          ],
          "columnsTo": [
            "product_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "product_links_product_id_link_type_linked_sku_pk": {
          "name": "product_links_product_id_link_type_linked_sku_pk",
          "columns": [
            "product_id",
            "link_type",
            "linked_sku"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.product_relations": {
      "name": "product_relations",
      "schema": "catalog",
      "columns": {
        "parent_id": {
          "name": "parent_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "child_sku": {
          "name": "child_sku",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "kind": {
          "name": "kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {
        "product_relations_child_idx": {
          "name": "product_relations_child_idx",
          "columns": [
            {
              "expression": "child_sku",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "product_relations_parent_id_products_product_id_fk": {
          "name": "product_relations_parent_id_products_product_id_fk",
          "tableFrom": "product_relations",
          "tableTo": "products",
          "schemaTo": "catalog",
          "columnsFrom": [
            "parent_id"
          ],
          "columnsTo": [
            "product_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "product_relations_parent_id_child_sku_kind_pk": {
          "name": "product_relations_parent_id_child_sku_kind_pk",
          "columns": [
            "parent_id",
            "child_sku",
            "kind"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.product_store_data": {
      "name": "product_store_data",
      "schema": "catalog",
      "columns": {
        "product_id": {
          "name": "product_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "store_id": {
          "name": "store_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "smallint",
          "primaryKey": false,
          "notNull": true
        },
        "visibility": {
          "name": "visibility",
          "type": "smallint",
          "primaryKey": false,
          "notNull": true
        },
        "url_key": {
          "name": "url_key",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "short_description": {
          "name": "short_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "meta_title": {
          "name": "meta_title",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "meta_description": {
          "name": "meta_description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "attributes": {
          "name": "attributes",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::jsonb"
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "product_store_data_name_trgm_idx": {
          "name": "product_store_data_name_trgm_idx",
          "columns": [
            {
              "expression": "\"name\" gin_trgm_ops",
              "asc": true,
              "isExpression": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "gin",
          "with": {}
        }
      },
      "foreignKeys": {
        "product_store_data_product_id_products_product_id_fk": {
          "name": "product_store_data_product_id_products_product_id_fk",
          "tableFrom": "product_store_data",
          "tableTo": "products",
          "schemaTo": "catalog",
          "columnsFrom": [
            "product_id"
          ],
          "columnsTo": [
            "product_id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "product_store_data_product_id_store_id_pk": {
          "name": "product_store_data_product_id_store_id_pk",
          "columns": [
            "product_id",
            "store_id"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.products": {
      "name": "products",
      "schema": "catalog",
      "columns": {
        "product_id": {
          "name": "product_id",
          "type": "integer",
          "primaryKey": true,
          "notNull": true
        },
        "sku": {
          "name": "sku",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "type_id": {
          "name": "type_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "attribute_set_id": {
          "name": "attribute_set_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "website_ids": {
          "name": "website_ids",
          "type": "integer[]",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::integer[]"
        },
        "price": {
          "name": "price",
          "type": "numeric(20, 4)",
          "primaryKey": false,
          "notNull": false
        },
        "special_price": {
          "name": "special_price",
          "type": "numeric(20, 4)",
          "primaryKey": false,
          "notNull": false
        },
        "special_from": {
          "name": "special_from",
          "type": "date",
          "primaryKey": false,
          "notNull": false
        },
        "special_to": {
          "name": "special_to",
          "type": "date",
          "primaryKey": false,
          "notNull": false
        },
        "tier_prices": {
          "name": "tier_prices",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true,
          "default": "'[]'::jsonb"
        },
        "weight": {
          "name": "weight",
          "type": "numeric(12, 4)",
          "primaryKey": false,
          "notNull": false
        },
        "magento_created_at": {
          "name": "magento_created_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "magento_updated_at": {
          "name": "magento_updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true
        },
        "deleted_at": {
          "name": "deleted_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {
        "products_sku_uidx": {
          "name": "products_sku_uidx",
          "columns": [
            {
              "expression": "sku",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        },
        "products_sku_trgm_idx": {
          "name": "products_sku_trgm_idx",
          "columns": [
            {
              "expression": "\"sku\" gin_trgm_ops",
              "asc": true,
              "isExpression": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "gin",
          "with": {}
        },
        "products_updated_idx": {
          "name": "products_updated_idx",
          "columns": [
            {
              "expression": "magento_updated_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "catalog.stores": {
      "name": "stores",
      "schema": "catalog",
      "columns": {
        "store_id": {
          "name": "store_id",
          "type": "integer",
          "primaryKey": true,
          "notNull": true
        },
        "code": {
          "name": "code",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "website_id": {
          "name": "website_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "website_code": {
          "name": "website_code",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "group_id": {
          "name": "group_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "locale": {
          "name": "locale",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "base_currency": {
          "name": "base_currency",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "display_currency": {
          "name": "display_currency",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "timezone": {
          "name": "timezone",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "base_url": {
          "name": "base_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "media_url": {
          "name": "media_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true
        },
        "synced_at": {
          "name": "synced_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "stores_code_unique": {
          "name": "stores_code_unique",
          "nullsNotDistinct": false,
          "columns": [
            "code"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.sync_runs": {
      "name": "sync_runs",
      "schema": "ops",
      "columns": {
        "id": {
          "name": "id",
          "type": "bigserial",
          "primaryKey": true,
          "notNull": true
        },
        "job": {
          "name": "job",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "started_at": {
          "name": "started_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "finished_at": {
          "name": "finished_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "status": {
          "name": "status",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "default": "'running'"
        },
        "stats": {
          "name": "stats",
          "type": "jsonb",
          "primaryKey": false,
          "notNull": true,
          "default": "'{}'::jsonb"
        },
        "error": {
          "name": "error",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "sync_runs_job_started_idx": {
          "name": "sync_runs_job_started_idx",
          "columns": [
            {
              "expression": "job",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "started_at",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": false,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "ops.sync_state": {
      "name": "sync_state",
      "schema": "ops",
      "columns": {
        "stream": {
          "name": "stream",
          "type": "text",
          "primaryKey": true,
          "notNull": true
        },
        "cursor": {
          "name": "cursor",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "last_success_at": {
          "name": "last_success_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {},
  "schemas": {
    "catalog": "catalog",
    "ops": "ops"
  },
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}