File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-weee/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="weee_tax" resource="default" engine="innodb" comment="Weee Tax">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Website ID"/>
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity ID"/>
<column xsi:type="varchar" name="country" nullable="true" length="2" comment="Country"/>
<column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false" default="0"
comment="Value"/>
<column xsi:type="int" name="state" unsigned="false" nullable="false" identity="false" default="0"
comment="State"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
comment="Attribute ID"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="value_id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="WEEE_TAX_COUNTRY_DIRECTORY_COUNTRY_COUNTRY_ID" table="weee_tax"
column="country" referenceTable="directory_country" referenceColumn="country_id"
onDelete="CASCADE"/>
<constraint xsi:type="foreign" referenceId="WEEE_TAX_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID" table="weee_tax"
column="entity_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
onDelete="CASCADE"/>
<constraint xsi:type="foreign" referenceId="WEEE_TAX_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID" table="weee_tax"
column="website_id" referenceTable="store_website" referenceColumn="website_id" onDelete="CASCADE"/>
<constraint xsi:type="foreign" referenceId="WEEE_TAX_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID" table="weee_tax"
column="attribute_id" referenceTable="eav_attribute" referenceColumn="attribute_id"
onDelete="CASCADE"/>
<index referenceId="WEEE_TAX_WEBSITE_ID" indexType="btree">
<column name="website_id"/>
</index>
<index referenceId="WEEE_TAX_ENTITY_ID" indexType="btree">
<column name="entity_id"/>
</index>
<index referenceId="WEEE_TAX_COUNTRY" indexType="btree">
<column name="country"/>
</index>
<index referenceId="WEEE_TAX_ATTRIBUTE_ID" indexType="btree">
<column name="attribute_id"/>
</index>
</table>
<table name="quote_item" resource="checkout" comment="Sales Flat Quote Item">
<column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
<column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Row Amount"/>
<column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Disposition"/>
<column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Row Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
<column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Row Disposition"/>
</table>
<table name="sales_order_item" resource="sales" comment="Sales Flat Order Item">
<column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
<column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Row Amount"/>
<column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Disposition"/>
<column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Row Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
<column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Row Disposition"/>
</table>
<table name="sales_invoice_item" resource="sales" comment="Sales Flat Invoice Item">
<column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
<column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Row Amount"/>
<column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Disposition"/>
<column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Row Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
<column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Row Disposition"/>
</table>
<table name="sales_creditmemo_item" resource="sales" comment="Sales Flat Creditmemo Item">
<column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
<column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Applied Row Amount"/>
<column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Disposition"/>
<column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Weee Tax Row Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Amount"/>
<column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
<column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Disposition"/>
<column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
nullable="true" comment="Base Weee Tax Row Disposition"/>
</table>
</schema>