123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?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" padding="11" unsigned="false" nullable="false" identity="true"
- comment="Value Id"/>
- <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
- default="0" comment="Website Id"/>
- <column xsi:type="int" name="entity_id" padding="10" 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" padding="11" unsigned="false" nullable="false" identity="false" default="0"
- comment="State"/>
- <column xsi:type="smallint" name="attribute_id" padding="5" 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>
|