db_schema.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="shipping_tablerate" resource="default" engine="innodb" comment="Shipping Tablerate">
  11. <column xsi:type="int" name="pk" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Primary key"/>
  13. <column xsi:type="int" name="website_id" padding="11" unsigned="false" nullable="false" identity="false"
  14. default="0" comment="Website Id"/>
  15. <column xsi:type="varchar" name="dest_country_id" nullable="false" length="4" default="0"
  16. comment="Destination coutry ISO/2 or ISO/3 code"/>
  17. <column xsi:type="int" name="dest_region_id" padding="11" unsigned="false" nullable="false" identity="false"
  18. default="0" comment="Destination Region Id"/>
  19. <column xsi:type="varchar" name="dest_zip" nullable="false" length="10" default="*"
  20. comment="Destination Post Code (Zip)"/>
  21. <column xsi:type="varchar" name="condition_name" nullable="false" length="30" comment="Rate Condition name"/>
  22. <column xsi:type="decimal" name="condition_value" scale="4" precision="12" unsigned="false" nullable="false"
  23. default="0" comment="Rate condition value"/>
  24. <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="false" default="0"
  25. comment="Price"/>
  26. <column xsi:type="decimal" name="cost" scale="4" precision="12" unsigned="false" nullable="false" default="0"
  27. comment="Cost"/>
  28. <constraint xsi:type="primary" referenceId="PRIMARY">
  29. <column name="pk"/>
  30. </constraint>
  31. <constraint xsi:type="unique" referenceId="UNQ_D60821CDB2AFACEE1566CFC02D0D4CAA">
  32. <column name="website_id"/>
  33. <column name="dest_country_id"/>
  34. <column name="dest_region_id"/>
  35. <column name="dest_zip"/>
  36. <column name="condition_name"/>
  37. <column name="condition_value"/>
  38. </constraint>
  39. </table>
  40. <table name="salesrule" resource="default" comment="Salesrule">
  41. <column xsi:type="smallint" name="simple_free_shipping" padding="5" unsigned="true" nullable="false"
  42. identity="false" default="0" comment="Simple Free Shipping"/>
  43. </table>
  44. <table name="sales_order_item" resource="sales" comment="Sales Flat Order Item">
  45. <column xsi:type="smallint" name="free_shipping" padding="5" unsigned="true" nullable="false" identity="false"
  46. default="0" comment="Free Shipping"/>
  47. </table>
  48. <table name="quote_address" resource="checkout" comment="Sales Flat Quote Address">
  49. <column xsi:type="smallint" name="free_shipping" padding="5" unsigned="true" nullable="false" identity="false"
  50. default="0" comment="Free Shipping"/>
  51. </table>
  52. <table name="quote_item" resource="checkout" comment="Sales Flat Quote Item">
  53. <column xsi:type="smallint" name="free_shipping" padding="5" unsigned="true" nullable="false" identity="false"
  54. default="0" comment="Free Shipping"/>
  55. </table>
  56. <table name="quote_address_item" resource="checkout" comment="Sales Flat Quote Address Item">
  57. <column xsi:type="int" name="free_shipping" padding="10" unsigned="true" nullable="true" identity="false"
  58. comment="Free Shipping"/>
  59. </table>
  60. </schema>