File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-bundle/etc/db_schema.xml
<?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" unsigned="true" nullable="false" identity="true"
comment="Option ID"/>
<column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
comment="Parent ID"/>
<column xsi:type="smallint" name="required" unsigned="true" nullable="false" identity="false"
default="0" comment="Required"/>
<column xsi:type="int" name="position" 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" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
comment="Option ID"/>
<column xsi:type="smallint" name="store_id" 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" 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" unsigned="true" nullable="false" identity="true"
comment="Selection ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
comment="Option ID"/>
<column xsi:type="int" name="parent_product_id" unsigned="true" nullable="false" identity="false"
comment="Parent Product ID"/>
<column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
comment="Product ID"/>
<column xsi:type="int" name="position" unsigned="true" nullable="false" identity="false"
default="0" comment="Position"/>
<column xsi:type="smallint" name="is_default" unsigned="true" nullable="false" identity="false"
default="0" comment="Is Default"/>
<column xsi:type="smallint" name="selection_price_type" 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" 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" unsigned="true" nullable="false" identity="false"
comment="Selection ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="smallint" name="selection_price_type" unsigned="true" nullable="false"
identity="false" default="0" comment="Selection Price Type"/>
<column xsi:type="decimal" name="selection_price_value" scale="6" precision="20" unsigned="false"
nullable="false" default="0" comment="Selection Price Value"/>
<column xsi:type="int" name="parent_product_id" 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" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
comment="Customer Group ID"/>
<column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="false"
comment="Min Price"/>
<column xsi:type="decimal" name="max_price" scale="6" precision="20" 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" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="smallint" name="stock_id" unsigned="true" nullable="false" identity="false"
comment="Stock ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Option ID"/>
<column xsi:type="smallint" name="stock_status" 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" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
default="0" comment="Tax Class ID"/>
<column xsi:type="smallint" name="price_type" unsigned="true" nullable="false" identity="false"
comment="Price Type"/>
<column xsi:type="decimal" name="special_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Special Price"/>
<column xsi:type="decimal" name="tier_percent" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Percent"/>
<column xsi:type="decimal" name="orig_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Orig Price"/>
<column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Price"/>
<column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Min Price"/>
<column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Max Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Price"/>
<column xsi:type="decimal" name="base_tier" scale="6" precision="20" 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="innodb"
comment="Catalog Product Index Price Bundle Tmp">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
default="0" comment="Tax Class ID"/>
<column xsi:type="smallint" name="price_type" unsigned="true" nullable="false" identity="false"
comment="Price Type"/>
<column xsi:type="decimal" name="special_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Special Price"/>
<column xsi:type="decimal" name="tier_percent" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Percent"/>
<column xsi:type="decimal" name="orig_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Orig Price"/>
<column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Price"/>
<column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Min Price"/>
<column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Max Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Price"/>
<column xsi:type="decimal" name="base_tier" scale="6" precision="20" 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" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Option ID"/>
<column xsi:type="int" name="selection_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Selection ID"/>
<column xsi:type="smallint" name="group_type" unsigned="true" nullable="true" identity="false"
default="0" comment="Group Type"/>
<column xsi:type="smallint" name="is_required" unsigned="true" nullable="true" identity="false"
default="0" comment="Is Required"/>
<column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" 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="innodb"
comment="Catalog Product Index Price Bundle Sel Tmp">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Option ID"/>
<column xsi:type="int" name="selection_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Selection ID"/>
<column xsi:type="smallint" name="group_type" unsigned="true" nullable="true" identity="false"
default="0" comment="Group Type"/>
<column xsi:type="smallint" name="is_required" unsigned="true" nullable="true" identity="false"
default="0" comment="Is Required"/>
<column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" 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" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Option ID"/>
<column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Min Price"/>
<column xsi:type="decimal" name="alt_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Alt Price"/>
<column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Max Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Price"/>
<column xsi:type="decimal" name="alt_tier_price" scale="6" precision="20" 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="innodb"
comment="Catalog Product Index Price Bundle Opt Tmp">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
comment="Website ID"/>
<column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Option ID"/>
<column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Min Price"/>
<column xsi:type="decimal" name="alt_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Alt Price"/>
<column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Max Price"/>
<column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
comment="Tier Price"/>
<column xsi:type="decimal" name="alt_tier_price" scale="6" precision="20" 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>