123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
- <table name="catalog_product_bundle_option" resource="default" engine="innodb"
- comment="Catalog Product Bundle Option">
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Option Id"/>
- <column xsi:type="int" name="parent_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Parent Id"/>
- <column xsi:type="smallint" name="required" padding="5" unsigned="true" nullable="false" identity="false"
- default="0" comment="Required"/>
- <column xsi:type="int" name="position" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Position"/>
- <column xsi:type="varchar" name="type" nullable="true" length="255" comment="Type"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="option_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_OPT_PARENT_ID_CAT_PRD_ENTT_ENTT_ID"
- table="catalog_product_bundle_option" column="parent_id" referenceTable="catalog_product_entity"
- referenceColumn="entity_id" onDelete="CASCADE"/>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_OPTION_PARENT_ID" indexType="btree">
- <column name="parent_id"/>
- </index>
- </table>
- <table name="catalog_product_bundle_option_value" resource="default" engine="innodb"
- comment="Catalog Product Bundle Option Value">
- <column xsi:type="int" name="value_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Value Id"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Option Id"/>
- <column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Store Id"/>
- <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Title"/>
- <column xsi:type="int" name="parent_product_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Parent Product Id"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="value_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_OPT_VAL_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID"
- table="catalog_product_bundle_option_value" column="option_id"
- referenceTable="catalog_product_bundle_option" referenceColumn="option_id" onDelete="CASCADE"/>
- <constraint xsi:type="unique" referenceId="CAT_PRD_BNDL_OPT_VAL_OPT_ID_PARENT_PRD_ID_STORE_ID">
- <column name="option_id"/>
- <column name="parent_product_id"/>
- <column name="store_id"/>
- </constraint>
- </table>
- <table name="catalog_product_bundle_selection" resource="default" engine="innodb"
- comment="Catalog Product Bundle Selection">
- <column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Selection Id"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Option Id"/>
- <column xsi:type="int" name="parent_product_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Parent Product Id"/>
- <column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Product Id"/>
- <column xsi:type="int" name="position" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Position"/>
- <column xsi:type="smallint" name="is_default" padding="5" unsigned="true" nullable="false" identity="false"
- default="0" comment="Is Default"/>
- <column xsi:type="smallint" name="selection_price_type" padding="5" unsigned="true" nullable="false"
- identity="false" default="0" comment="Selection Price Type"/>
- <column xsi:type="decimal" name="selection_price_value" scale="4" precision="12" unsigned="false"
- nullable="false" default="0" comment="Selection Price Value"/>
- <column xsi:type="decimal" name="selection_qty" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Selection Qty"/>
- <column xsi:type="smallint" name="selection_can_change_qty" padding="6" unsigned="false" nullable="false"
- identity="false" default="0" comment="Selection Can Change Qty"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="selection_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_SELECTION_OPT_ID_CAT_PRD_BNDL_OPT_OPT_ID"
- table="catalog_product_bundle_selection" column="option_id"
- referenceTable="catalog_product_bundle_option" referenceColumn="option_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_SELECTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID"
- table="catalog_product_bundle_selection" column="product_id" referenceTable="catalog_product_entity"
- referenceColumn="entity_id" onDelete="CASCADE"/>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_SELECTION_OPTION_ID" indexType="btree">
- <column name="option_id"/>
- </index>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_SELECTION_PRODUCT_ID" indexType="btree">
- <column name="product_id"/>
- </index>
- </table>
- <table name="catalog_product_bundle_selection_price" resource="default" engine="innodb"
- comment="Catalog Product Bundle Selection Price">
- <column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Selection Id"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website Id"/>
- <column xsi:type="smallint" name="selection_price_type" padding="5" unsigned="true" nullable="false"
- identity="false" default="0" comment="Selection Price Type"/>
- <column xsi:type="decimal" name="selection_price_value" scale="4" precision="12" unsigned="false"
- nullable="false" default="0" comment="Selection Price Value"/>
- <column xsi:type="int" name="parent_product_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Parent Product Id"/>
- <constraint xsi:type="primary" referenceId="PK_CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE">
- <column name="selection_id"/>
- <column name="parent_product_id"/>
- <column name="website_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_SELECTION_PRICE_WS_ID_STORE_WS_WS_ID"
- table="catalog_product_bundle_selection_price" column="website_id" referenceTable="store_website"
- referenceColumn="website_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="FK_DCF37523AA05D770A70AA4ED7C2616E4"
- table="catalog_product_bundle_selection_price" column="selection_id"
- referenceTable="catalog_product_bundle_selection" referenceColumn="selection_id"
- onDelete="CASCADE"/>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_SELECTION_PRICE_WEBSITE_ID" indexType="btree">
- <column name="website_id"/>
- </index>
- </table>
- <table name="catalog_product_bundle_price_index" resource="default" engine="innodb"
- comment="Catalog Product Bundle Price Index">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website Id"/>
- <column xsi:type="int" name="customer_group_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Customer Group ID"/>
- <column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="false"
- comment="Min Price"/>
- <column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="false"
- comment="Max Price"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="website_id"/>
- <column name="customer_group_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_PRICE_IDX_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID"
- table="catalog_product_bundle_price_index" column="customer_group_id"
- referenceTable="customer_group" referenceColumn="customer_group_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_PRICE_IDX_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
- table="catalog_product_bundle_price_index" column="entity_id"
- referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="CAT_PRD_BNDL_PRICE_IDX_WS_ID_STORE_WS_WS_ID"
- table="catalog_product_bundle_price_index" column="website_id" referenceTable="store_website"
- referenceColumn="website_id" onDelete="CASCADE"/>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_WEBSITE_ID" indexType="btree">
- <column name="website_id"/>
- </index>
- <index referenceId="CATALOG_PRODUCT_BUNDLE_PRICE_INDEX_CUSTOMER_GROUP_ID" indexType="btree">
- <column name="customer_group_id"/>
- </index>
- </table>
- <table name="catalog_product_bundle_stock_index" resource="default" engine="innodb"
- comment="Catalog Product Bundle Stock Index">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="smallint" name="stock_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Stock ID"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Option Id"/>
- <column xsi:type="smallint" name="stock_status" padding="6" unsigned="false" nullable="true" identity="false"
- default="0" comment="Stock Status"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="website_id"/>
- <column name="stock_id"/>
- <column name="option_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_idx" resource="default" engine="innodb"
- comment="Catalog Product Index Price Bundle Idx">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="smallint" name="tax_class_id" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Tax Class ID"/>
- <column xsi:type="smallint" name="price_type" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Price Type"/>
- <column xsi:type="decimal" name="special_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Special Price"/>
- <column xsi:type="decimal" name="tier_percent" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Percent"/>
- <column xsi:type="decimal" name="orig_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Orig Price"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Price"/>
- <column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Min Price"/>
- <column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Max Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <column xsi:type="decimal" name="base_tier" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Base Tier"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_tmp" resource="default" engine="memory"
- comment="Catalog Product Index Price Bundle Tmp">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="smallint" name="tax_class_id" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Tax Class ID"/>
- <column xsi:type="smallint" name="price_type" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Price Type"/>
- <column xsi:type="decimal" name="special_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Special Price"/>
- <column xsi:type="decimal" name="tier_percent" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Percent"/>
- <column xsi:type="decimal" name="orig_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Orig Price"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Price"/>
- <column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Min Price"/>
- <column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Max Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <column xsi:type="decimal" name="base_tier" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Base Tier"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_sel_idx" resource="default" engine="innodb"
- comment="Catalog Product Index Price Bundle Sel Idx">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Option Id"/>
- <column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Selection Id"/>
- <column xsi:type="smallint" name="group_type" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Group Type"/>
- <column xsi:type="smallint" name="is_required" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Is Required"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- <column name="option_id"/>
- <column name="selection_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_sel_tmp" resource="default" engine="memory"
- comment="Catalog Product Index Price Bundle Sel Tmp">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Option Id"/>
- <column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Selection Id"/>
- <column xsi:type="smallint" name="group_type" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Group Type"/>
- <column xsi:type="smallint" name="is_required" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Is Required"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- <column name="option_id"/>
- <column name="selection_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_opt_idx" resource="default" engine="innodb"
- comment="Catalog Product Index Price Bundle Opt Idx">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Option Id"/>
- <column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Min Price"/>
- <column xsi:type="decimal" name="alt_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Alt Price"/>
- <column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Max Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <column xsi:type="decimal" name="alt_tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Alt Tier Price"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- <column name="option_id"/>
- </constraint>
- </table>
- <table name="catalog_product_index_price_bundle_opt_tmp" resource="default" engine="memory"
- comment="Catalog Product Index Price Bundle Opt Tmp">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Entity ID"/>
- <column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
- identity="false"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- comment="Website ID"/>
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Option Id"/>
- <column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Min Price"/>
- <column xsi:type="decimal" name="alt_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Alt Price"/>
- <column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Max Price"/>
- <column xsi:type="decimal" name="tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tier Price"/>
- <column xsi:type="decimal" name="alt_tier_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Alt Tier Price"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="customer_group_id"/>
- <column name="website_id"/>
- <column name="option_id"/>
- </constraint>
- </table>
- </schema>
|