db_schema.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="weee_tax" resource="default" engine="innodb" comment="Weee Tax">
  11. <column xsi:type="int" name="value_id" padding="11" unsigned="false" nullable="false" identity="true"
  12. comment="Value Id"/>
  13. <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
  14. default="0" comment="Website Id"/>
  15. <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
  16. default="0" comment="Entity ID"/>
  17. <column xsi:type="varchar" name="country" nullable="true" length="2" comment="Country"/>
  18. <column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false" default="0"
  19. comment="Value"/>
  20. <column xsi:type="int" name="state" padding="11" unsigned="false" nullable="false" identity="false" default="0"
  21. comment="State"/>
  22. <column xsi:type="smallint" name="attribute_id" padding="5" unsigned="true" nullable="false" identity="false"
  23. comment="Attribute Id"/>
  24. <constraint xsi:type="primary" referenceId="PRIMARY">
  25. <column name="value_id"/>
  26. </constraint>
  27. <constraint xsi:type="foreign" referenceId="WEEE_TAX_COUNTRY_DIRECTORY_COUNTRY_COUNTRY_ID" table="weee_tax"
  28. column="country" referenceTable="directory_country" referenceColumn="country_id"
  29. onDelete="CASCADE"/>
  30. <constraint xsi:type="foreign" referenceId="WEEE_TAX_ENTITY_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID" table="weee_tax"
  31. column="entity_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
  32. onDelete="CASCADE"/>
  33. <constraint xsi:type="foreign" referenceId="WEEE_TAX_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID" table="weee_tax"
  34. column="website_id" referenceTable="store_website" referenceColumn="website_id" onDelete="CASCADE"/>
  35. <constraint xsi:type="foreign" referenceId="WEEE_TAX_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID" table="weee_tax"
  36. column="attribute_id" referenceTable="eav_attribute" referenceColumn="attribute_id"
  37. onDelete="CASCADE"/>
  38. <index referenceId="WEEE_TAX_WEBSITE_ID" indexType="btree">
  39. <column name="website_id"/>
  40. </index>
  41. <index referenceId="WEEE_TAX_ENTITY_ID" indexType="btree">
  42. <column name="entity_id"/>
  43. </index>
  44. <index referenceId="WEEE_TAX_COUNTRY" indexType="btree">
  45. <column name="country"/>
  46. </index>
  47. <index referenceId="WEEE_TAX_ATTRIBUTE_ID" indexType="btree">
  48. <column name="attribute_id"/>
  49. </index>
  50. </table>
  51. <table name="quote_item" resource="checkout" comment="Sales Flat Quote Item">
  52. <column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
  53. <column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  54. nullable="true" comment="Weee Tax Applied Amount"/>
  55. <column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
  56. nullable="true" comment="Weee Tax Applied Row Amount"/>
  57. <column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
  58. nullable="true" comment="Weee Tax Disposition"/>
  59. <column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  60. nullable="true" comment="Weee Tax Row Disposition"/>
  61. <column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  62. nullable="true" comment="Base Weee Tax Applied Amount"/>
  63. <column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
  64. nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
  65. <column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
  66. nullable="true" comment="Base Weee Tax Disposition"/>
  67. <column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  68. nullable="true" comment="Base Weee Tax Row Disposition"/>
  69. </table>
  70. <table name="sales_order_item" resource="sales" comment="Sales Flat Order Item">
  71. <column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
  72. <column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  73. nullable="true" comment="Weee Tax Applied Amount"/>
  74. <column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
  75. nullable="true" comment="Weee Tax Applied Row Amount"/>
  76. <column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
  77. nullable="true" comment="Weee Tax Disposition"/>
  78. <column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  79. nullable="true" comment="Weee Tax Row Disposition"/>
  80. <column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  81. nullable="true" comment="Base Weee Tax Applied Amount"/>
  82. <column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
  83. nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
  84. <column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
  85. nullable="true" comment="Base Weee Tax Disposition"/>
  86. <column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  87. nullable="true" comment="Base Weee Tax Row Disposition"/>
  88. </table>
  89. <table name="sales_invoice_item" resource="sales" comment="Sales Flat Invoice Item">
  90. <column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
  91. <column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  92. nullable="true" comment="Weee Tax Applied Amount"/>
  93. <column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
  94. nullable="true" comment="Weee Tax Applied Row Amount"/>
  95. <column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
  96. nullable="true" comment="Weee Tax Disposition"/>
  97. <column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  98. nullable="true" comment="Weee Tax Row Disposition"/>
  99. <column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  100. nullable="true" comment="Base Weee Tax Applied Amount"/>
  101. <column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
  102. nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
  103. <column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
  104. nullable="true" comment="Base Weee Tax Disposition"/>
  105. <column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  106. nullable="true" comment="Base Weee Tax Row Disposition"/>
  107. </table>
  108. <table name="sales_creditmemo_item" resource="sales" comment="Sales Flat Creditmemo Item">
  109. <column xsi:type="text" name="weee_tax_applied" nullable="true" comment="Weee Tax Applied"/>
  110. <column xsi:type="decimal" name="weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  111. nullable="true" comment="Weee Tax Applied Amount"/>
  112. <column xsi:type="decimal" name="weee_tax_applied_row_amount" scale="4" precision="12" unsigned="false"
  113. nullable="true" comment="Weee Tax Applied Row Amount"/>
  114. <column xsi:type="decimal" name="weee_tax_disposition" scale="4" precision="12" unsigned="false"
  115. nullable="true" comment="Weee Tax Disposition"/>
  116. <column xsi:type="decimal" name="weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  117. nullable="true" comment="Weee Tax Row Disposition"/>
  118. <column xsi:type="decimal" name="base_weee_tax_applied_amount" scale="4" precision="12" unsigned="false"
  119. nullable="true" comment="Base Weee Tax Applied Amount"/>
  120. <column xsi:type="decimal" name="base_weee_tax_applied_row_amnt" scale="4" precision="12" unsigned="false"
  121. nullable="true" comment="Base Weee Tax Applied Row Amnt"/>
  122. <column xsi:type="decimal" name="base_weee_tax_disposition" scale="4" precision="12" unsigned="false"
  123. nullable="true" comment="Base Weee Tax Disposition"/>
  124. <column xsi:type="decimal" name="base_weee_tax_row_disposition" scale="4" precision="12" unsigned="false"
  125. nullable="true" comment="Base Weee Tax Row Disposition"/>
  126. </table>
  127. </schema>