123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 |
- <?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="quote" resource="checkout" engine="innodb" comment="Sales Flat Quote">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Entity ID"/>
- <column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
- default="0" comment="Store Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"/>
- <column xsi:type="timestamp" name="converted_at" on_update="false" nullable="true" comment="Converted At"/>
- <column xsi:type="smallint" name="is_active" padding="5" unsigned="true" nullable="true" identity="false"
- default="1" comment="Is Active"/>
- <column xsi:type="smallint" name="is_virtual" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Is Virtual"/>
- <column xsi:type="smallint" name="is_multi_shipping" padding="5" unsigned="true" nullable="true"
- identity="false" default="0" comment="Is Multi Shipping"/>
- <column xsi:type="int" name="items_count" padding="10" unsigned="true" nullable="true" identity="false"
- default="0" comment="Items Count"/>
- <column xsi:type="decimal" name="items_qty" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Items Qty"/>
- <column xsi:type="int" name="orig_order_id" padding="10" unsigned="true" nullable="true" identity="false"
- default="0" comment="Orig Order Id"/>
- <column xsi:type="decimal" name="store_to_base_rate" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Store To Base Rate"/>
- <column xsi:type="decimal" name="store_to_quote_rate" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Store To Quote Rate"/>
- <column xsi:type="varchar" name="base_currency_code" nullable="true" length="255" comment="Base Currency Code"/>
- <column xsi:type="varchar" name="store_currency_code" nullable="true" length="255"
- comment="Store Currency Code"/>
- <column xsi:type="varchar" name="quote_currency_code" nullable="true" length="255"
- comment="Quote Currency Code"/>
- <column xsi:type="decimal" name="grand_total" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Grand Total"/>
- <column xsi:type="decimal" name="base_grand_total" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Base Grand Total"/>
- <column xsi:type="varchar" name="checkout_method" nullable="true" length="255" comment="Checkout Method"/>
- <column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Customer Id"/>
- <column xsi:type="int" name="customer_tax_class_id" padding="10" unsigned="true" nullable="true"
- identity="false" comment="Customer Tax Class Id"/>
- <column xsi:type="int" name="customer_group_id" padding="10" unsigned="true" nullable="true" identity="false"
- default="0" comment="Customer Group Id"/>
- <column xsi:type="varchar" name="customer_email" nullable="true" length="255" comment="Customer Email"/>
- <column xsi:type="varchar" name="customer_prefix" nullable="true" length="40" comment="Customer Prefix"/>
- <column xsi:type="varchar" name="customer_firstname" nullable="true" length="255" comment="Customer Firstname"/>
- <column xsi:type="varchar" name="customer_middlename" nullable="true" length="40"
- comment="Customer Middlename"/>
- <column xsi:type="varchar" name="customer_lastname" nullable="true" length="255" comment="Customer Lastname"/>
- <column xsi:type="varchar" name="customer_suffix" nullable="true" length="40" comment="Customer Suffix"/>
- <column xsi:type="datetime" name="customer_dob" on_update="false" nullable="true" comment="Customer Dob"/>
- <column xsi:type="varchar" name="customer_note" nullable="true" length="255" comment="Customer Note"/>
- <column xsi:type="smallint" name="customer_note_notify" padding="5" unsigned="true" nullable="true"
- identity="false" default="1" comment="Customer Note Notify"/>
- <column xsi:type="smallint" name="customer_is_guest" padding="5" unsigned="true" nullable="true"
- identity="false" default="0" comment="Customer Is Guest"/>
- <column xsi:type="varchar" name="remote_ip" nullable="true" length="45" comment="Remote Ip"/>
- <column xsi:type="varchar" name="applied_rule_ids" nullable="true" length="255" comment="Applied Rule Ids"/>
- <column xsi:type="varchar" name="reserved_order_id" nullable="true" length="64" comment="Reserved Order Id"/>
- <column xsi:type="varchar" name="password_hash" nullable="true" length="255" comment="Password Hash"/>
- <column xsi:type="varchar" name="coupon_code" nullable="true" length="255" comment="Coupon Code"/>
- <column xsi:type="varchar" name="global_currency_code" nullable="true" length="255"
- comment="Global Currency Code"/>
- <column xsi:type="decimal" name="base_to_global_rate" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Base To Global Rate"/>
- <column xsi:type="decimal" name="base_to_quote_rate" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Base To Quote Rate"/>
- <column xsi:type="varchar" name="customer_taxvat" nullable="true" length="255" comment="Customer Taxvat"/>
- <column xsi:type="varchar" name="customer_gender" nullable="true" length="255" comment="Customer Gender"/>
- <column xsi:type="decimal" name="subtotal" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Subtotal"/>
- <column xsi:type="decimal" name="base_subtotal" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Base Subtotal"/>
- <column xsi:type="decimal" name="subtotal_with_discount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Subtotal With Discount"/>
- <column xsi:type="decimal" name="base_subtotal_with_discount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Subtotal With Discount"/>
- <column xsi:type="int" name="is_changed" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Is Changed"/>
- <column xsi:type="smallint" name="trigger_recollect" padding="6" unsigned="false" nullable="false"
- identity="false" default="0" comment="Trigger Recollect"/>
- <column xsi:type="text" name="ext_shipping_info" nullable="true" comment="Ext Shipping Info"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_STORE_ID_STORE_STORE_ID" table="quote" column="store_id"
- referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_CUSTOMER_ID_STORE_ID_IS_ACTIVE" indexType="btree">
- <column name="customer_id"/>
- <column name="store_id"/>
- <column name="is_active"/>
- </index>
- <index referenceId="QUOTE_STORE_ID" indexType="btree">
- <column name="store_id"/>
- </index>
- </table>
- <table name="quote_address" resource="checkout" engine="innodb" comment="Sales Flat Quote Address">
- <column xsi:type="int" name="address_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Address Id"/>
- <column xsi:type="int" name="quote_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Quote Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
- comment="Updated At"/>
- <column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Customer Id"/>
- <column xsi:type="smallint" name="save_in_address_book" padding="6" unsigned="false" nullable="true"
- identity="false" default="0" comment="Save In Address Book"/>
- <column xsi:type="int" name="customer_address_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Customer Address Id"/>
- <column xsi:type="varchar" name="address_type" nullable="true" length="10" comment="Address Type"/>
- <column xsi:type="varchar" name="email" nullable="true" length="255" comment="Email"/>
- <column xsi:type="varchar" name="prefix" nullable="true" length="40" comment="Prefix"/>
- <column xsi:type="varchar" name="firstname" nullable="true" length="255"/>
- <column xsi:type="varchar" name="middlename" nullable="true" length="40"/>
- <column xsi:type="varchar" name="lastname" nullable="true" length="255"/>
- <column xsi:type="varchar" name="suffix" nullable="true" length="40" comment="Suffix"/>
- <column xsi:type="varchar" name="company" nullable="true" length="255" comment="Company"/>
- <column xsi:type="varchar" name="street" nullable="true" length="255" onCreate="migrateDataFrom(street)"
- comment="Street"/>
- <column xsi:type="varchar" name="city" nullable="true" length="255"/>
- <column xsi:type="varchar" name="region" nullable="true" length="255"/>
- <column xsi:type="int" name="region_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Region Id"/>
- <column xsi:type="varchar" name="postcode" nullable="true" length="20" comment="Postcode"/>
- <column xsi:type="varchar" name="country_id" nullable="true" length="30" comment="Country Id"/>
- <column xsi:type="varchar" name="telephone" nullable="true" length="255"/>
- <column xsi:type="varchar" name="fax" nullable="true" length="255"/>
- <column xsi:type="smallint" name="same_as_billing" padding="5" unsigned="true" nullable="false" identity="false"
- default="0" comment="Same As Billing"/>
- <column xsi:type="smallint" name="collect_shipping_rates" padding="5" unsigned="true" nullable="false"
- identity="false" default="0" comment="Collect Shipping Rates"/>
- <column xsi:type="varchar" name="shipping_method" nullable="true" length="120"/>
- <column xsi:type="varchar" name="shipping_description" nullable="true" length="255"
- comment="Shipping Description"/>
- <column xsi:type="decimal" name="weight" scale="4" precision="12" unsigned="false" nullable="false" default="0"
- comment="Weight"/>
- <column xsi:type="decimal" name="subtotal" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Subtotal"/>
- <column xsi:type="decimal" name="base_subtotal" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Base Subtotal"/>
- <column xsi:type="decimal" name="subtotal_with_discount" scale="4" precision="20" unsigned="false"
- nullable="false" default="0" comment="Subtotal With Discount"/>
- <column xsi:type="decimal" name="base_subtotal_with_discount" scale="4" precision="20" unsigned="false"
- nullable="false" default="0" comment="Base Subtotal With Discount"/>
- <column xsi:type="decimal" name="tax_amount" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Tax Amount"/>
- <column xsi:type="decimal" name="base_tax_amount" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Base Tax Amount"/>
- <column xsi:type="decimal" name="shipping_amount" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Shipping Amount"/>
- <column xsi:type="decimal" name="base_shipping_amount" scale="4" precision="20" unsigned="false"
- nullable="false" default="0" comment="Base Shipping Amount"/>
- <column xsi:type="decimal" name="shipping_tax_amount" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Shipping Tax Amount"/>
- <column xsi:type="decimal" name="base_shipping_tax_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Shipping Tax Amount"/>
- <column xsi:type="decimal" name="discount_amount" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Discount Amount"/>
- <column xsi:type="decimal" name="base_discount_amount" scale="4" precision="20" unsigned="false"
- nullable="false" default="0" comment="Base Discount Amount"/>
- <column xsi:type="decimal" name="grand_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Grand Total"/>
- <column xsi:type="decimal" name="base_grand_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Base Grand Total"/>
- <column xsi:type="text" name="customer_notes" nullable="true" comment="Customer Notes"/>
- <column xsi:type="text" name="applied_taxes" nullable="true" comment="Applied Taxes"/>
- <column xsi:type="varchar" name="discount_description" nullable="true" length="255"
- comment="Discount Description"/>
- <column xsi:type="decimal" name="shipping_discount_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Shipping Discount Amount"/>
- <column xsi:type="decimal" name="base_shipping_discount_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Shipping Discount Amount"/>
- <column xsi:type="decimal" name="subtotal_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Subtotal Incl Tax"/>
- <column xsi:type="decimal" name="base_subtotal_total_incl_tax" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Subtotal Total Incl Tax"/>
- <column xsi:type="decimal" name="discount_tax_compensation_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="base_discount_tax_compensation_amount" scale="4" precision="20"
- unsigned="false" nullable="true" comment="Base Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="shipping_discount_tax_compensation_amount" scale="4" precision="20"
- unsigned="false" nullable="true" comment="Shipping Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="base_shipping_discount_tax_compensation_amnt" scale="4" precision="20"
- unsigned="false" nullable="true" comment="Base Shipping Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="shipping_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Shipping Incl Tax"/>
- <column xsi:type="decimal" name="base_shipping_incl_tax" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Shipping Incl Tax"/>
- <column xsi:type="text" name="vat_id" nullable="true" comment="Vat Id"/>
- <column xsi:type="smallint" name="vat_is_valid" padding="6" unsigned="false" nullable="true" identity="false"
- comment="Vat Is Valid"/>
- <column xsi:type="text" name="vat_request_id" nullable="true" comment="Vat Request Id"/>
- <column xsi:type="text" name="vat_request_date" nullable="true" comment="Vat Request Date"/>
- <column xsi:type="smallint" name="vat_request_success" padding="6" unsigned="false" nullable="true"
- identity="false" comment="Vat Request Success"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="address_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_ADDRESS_QUOTE_ID_QUOTE_ENTITY_ID" table="quote_address"
- column="quote_id" referenceTable="quote" referenceColumn="entity_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_ADDRESS_QUOTE_ID" indexType="btree">
- <column name="quote_id"/>
- </index>
- </table>
- <table name="quote_item" resource="checkout" engine="innodb" comment="Sales Flat Quote Item">
- <column xsi:type="int" name="item_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Item Id"/>
- <column xsi:type="int" name="quote_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Quote Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
- comment="Updated At"/>
- <column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Product Id"/>
- <column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="true" identity="false"
- comment="Store Id"/>
- <column xsi:type="int" name="parent_item_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Parent Item Id"/>
- <column xsi:type="smallint" name="is_virtual" padding="5" unsigned="true" nullable="true" identity="false"
- comment="Is Virtual"/>
- <column xsi:type="varchar" name="sku" nullable="true" length="255" comment="Sku"/>
- <column xsi:type="varchar" name="name" nullable="true" length="255" comment="Name"/>
- <column xsi:type="text" name="description" nullable="true" comment="Description"/>
- <column xsi:type="text" name="applied_rule_ids" nullable="true" comment="Applied Rule Ids"/>
- <column xsi:type="text" name="additional_data" nullable="true" comment="Additional Data"/>
- <column xsi:type="smallint" name="is_qty_decimal" padding="5" unsigned="true" nullable="true" identity="false"
- comment="Is Qty Decimal"/>
- <column xsi:type="smallint" name="no_discount" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="No Discount"/>
- <column xsi:type="decimal" name="weight" scale="4" precision="12" unsigned="false" nullable="true" default="0"
- comment="Weight"/>
- <column xsi:type="decimal" name="qty" scale="4" precision="12" unsigned="false" nullable="false" default="0"
- comment="Qty"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="false" default="0"
- comment="Price"/>
- <column xsi:type="decimal" name="base_price" scale="4" precision="12" unsigned="false" nullable="false"
- default="0" comment="Base Price"/>
- <column xsi:type="decimal" name="custom_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Custom Price"/>
- <column xsi:type="decimal" name="discount_percent" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Discount Percent"/>
- <column xsi:type="decimal" name="discount_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Discount Amount"/>
- <column xsi:type="decimal" name="base_discount_amount" scale="4" precision="20" unsigned="false"
- nullable="true" default="0" comment="Base Discount Amount"/>
- <column xsi:type="decimal" name="tax_percent" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Tax Percent"/>
- <column xsi:type="decimal" name="tax_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Tax Amount"/>
- <column xsi:type="decimal" name="base_tax_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Base Tax Amount"/>
- <column xsi:type="decimal" name="row_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Row Total"/>
- <column xsi:type="decimal" name="base_row_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Base Row Total"/>
- <column xsi:type="decimal" name="row_total_with_discount" scale="4" precision="20" unsigned="false"
- nullable="true" default="0" comment="Row Total With Discount"/>
- <column xsi:type="decimal" name="row_weight" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Row Weight"/>
- <column xsi:type="varchar" name="product_type" nullable="true" length="255" comment="Product Type"/>
- <column xsi:type="decimal" name="base_tax_before_discount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Tax Before Discount"/>
- <column xsi:type="decimal" name="tax_before_discount" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Tax Before Discount"/>
- <column xsi:type="decimal" name="original_custom_price" scale="4" precision="12" unsigned="false"
- nullable="true" comment="Original Custom Price"/>
- <column xsi:type="varchar" name="redirect_url" nullable="true" length="255" comment="Redirect Url"/>
- <column xsi:type="decimal" name="base_cost" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Base Cost"/>
- <column xsi:type="decimal" name="price_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Price Incl Tax"/>
- <column xsi:type="decimal" name="base_price_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Base Price Incl Tax"/>
- <column xsi:type="decimal" name="row_total_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Row Total Incl Tax"/>
- <column xsi:type="decimal" name="base_row_total_incl_tax" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Row Total Incl Tax"/>
- <column xsi:type="decimal" name="discount_tax_compensation_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="base_discount_tax_compensation_amount" scale="4" precision="20"
- unsigned="false" nullable="true" comment="Base Discount Tax Compensation Amount"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="item_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_ITEM_PARENT_ITEM_ID_QUOTE_ITEM_ITEM_ID" table="quote_item"
- column="parent_item_id" referenceTable="quote_item" referenceColumn="item_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="QUOTE_ITEM_QUOTE_ID_QUOTE_ENTITY_ID" table="quote_item" column="quote_id"
- referenceTable="quote" referenceColumn="entity_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="QUOTE_ITEM_STORE_ID_STORE_STORE_ID" table="quote_item" column="store_id"
- referenceTable="store" referenceColumn="store_id" onDelete="SET NULL"/>
- <index referenceId="QUOTE_ITEM_PARENT_ITEM_ID" indexType="btree">
- <column name="parent_item_id"/>
- </index>
- <index referenceId="QUOTE_ITEM_PRODUCT_ID" indexType="btree">
- <column name="product_id"/>
- </index>
- <index referenceId="QUOTE_ITEM_QUOTE_ID" indexType="btree">
- <column name="quote_id"/>
- </index>
- <index referenceId="QUOTE_ITEM_STORE_ID" indexType="btree">
- <column name="store_id"/>
- </index>
- </table>
- <table name="quote_address_item" resource="checkout" engine="innodb" comment="Sales Flat Quote Address Item">
- <column xsi:type="int" name="address_item_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Address Item Id"/>
- <column xsi:type="int" name="parent_item_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Parent Item Id"/>
- <column xsi:type="int" name="quote_address_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Quote Address Id"/>
- <column xsi:type="int" name="quote_item_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Quote Item Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
- comment="Updated At"/>
- <column xsi:type="text" name="applied_rule_ids" nullable="true" comment="Applied Rule Ids"/>
- <column xsi:type="text" name="additional_data" nullable="true" comment="Additional Data"/>
- <column xsi:type="decimal" name="weight" scale="4" precision="12" unsigned="false" nullable="true" default="0"
- comment="Weight"/>
- <column xsi:type="decimal" name="qty" scale="4" precision="12" unsigned="false" nullable="false" default="0"
- comment="Qty"/>
- <column xsi:type="decimal" name="discount_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Discount Amount"/>
- <column xsi:type="decimal" name="tax_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Tax Amount"/>
- <column xsi:type="decimal" name="row_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Row Total"/>
- <column xsi:type="decimal" name="base_row_total" scale="4" precision="20" unsigned="false" nullable="false"
- default="0" comment="Base Row Total"/>
- <column xsi:type="decimal" name="row_total_with_discount" scale="4" precision="20" unsigned="false"
- nullable="true" default="0" comment="Row Total With Discount"/>
- <column xsi:type="decimal" name="base_discount_amount" scale="4" precision="20" unsigned="false"
- nullable="true" default="0" comment="Base Discount Amount"/>
- <column xsi:type="decimal" name="base_tax_amount" scale="4" precision="20" unsigned="false" nullable="true"
- default="0" comment="Base Tax Amount"/>
- <column xsi:type="decimal" name="row_weight" scale="4" precision="12" unsigned="false" nullable="true"
- default="0" comment="Row Weight"/>
- <column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Product Id"/>
- <column xsi:type="int" name="super_product_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Super Product Id"/>
- <column xsi:type="int" name="parent_product_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Parent Product Id"/>
- <column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="true" identity="false"
- comment="Store Id"/>
- <column xsi:type="varchar" name="sku" nullable="true" length="255" comment="Sku"/>
- <column xsi:type="varchar" name="image" nullable="true" length="255" comment="Image"/>
- <column xsi:type="varchar" name="name" nullable="true" length="255" comment="Name"/>
- <column xsi:type="text" name="description" nullable="true" comment="Description"/>
- <column xsi:type="int" name="is_qty_decimal" padding="10" unsigned="true" nullable="true" identity="false"
- comment="Is Qty Decimal"/>
- <column xsi:type="decimal" name="price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Price"/>
- <column xsi:type="decimal" name="discount_percent" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Discount Percent"/>
- <column xsi:type="int" name="no_discount" padding="10" unsigned="true" nullable="true" identity="false"
- comment="No Discount"/>
- <column xsi:type="decimal" name="tax_percent" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Tax Percent"/>
- <column xsi:type="decimal" name="base_price" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Base Price"/>
- <column xsi:type="decimal" name="base_cost" scale="4" precision="12" unsigned="false" nullable="true"
- comment="Base Cost"/>
- <column xsi:type="decimal" name="price_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Price Incl Tax"/>
- <column xsi:type="decimal" name="base_price_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Base Price Incl Tax"/>
- <column xsi:type="decimal" name="row_total_incl_tax" scale="4" precision="20" unsigned="false" nullable="true"
- comment="Row Total Incl Tax"/>
- <column xsi:type="decimal" name="base_row_total_incl_tax" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Base Row Total Incl Tax"/>
- <column xsi:type="decimal" name="discount_tax_compensation_amount" scale="4" precision="20" unsigned="false"
- nullable="true" comment="Discount Tax Compensation Amount"/>
- <column xsi:type="decimal" name="base_discount_tax_compensation_amount" scale="4" precision="20"
- unsigned="false" nullable="true" comment="Base Discount Tax Compensation Amount"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="address_item_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID"
- table="quote_address_item" column="quote_address_id" referenceTable="quote_address"
- referenceColumn="address_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="QUOTE_ADDR_ITEM_PARENT_ITEM_ID_QUOTE_ADDR_ITEM_ADDR_ITEM_ID"
- table="quote_address_item" column="parent_item_id" referenceTable="quote_address_item"
- referenceColumn="address_item_id" onDelete="CASCADE"/>
- <constraint xsi:type="foreign" referenceId="QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID_QUOTE_ITEM_ITEM_ID"
- table="quote_address_item" column="quote_item_id" referenceTable="quote_item"
- referenceColumn="item_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_ADDRESS_ITEM_QUOTE_ADDRESS_ID" indexType="btree">
- <column name="quote_address_id"/>
- </index>
- <index referenceId="QUOTE_ADDRESS_ITEM_PARENT_ITEM_ID" indexType="btree">
- <column name="parent_item_id"/>
- </index>
- <index referenceId="QUOTE_ADDRESS_ITEM_QUOTE_ITEM_ID" indexType="btree">
- <column name="quote_item_id"/>
- </index>
- <index referenceId="QUOTE_ADDRESS_ITEM_STORE_ID" indexType="btree">
- <column name="store_id"/>
- </index>
- </table>
- <table name="quote_item_option" resource="checkout" engine="innodb" comment="Sales Flat Quote Item Option">
- <column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Option Id"/>
- <column xsi:type="int" name="item_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Item Id"/>
- <column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Product Id"/>
- <column xsi:type="varchar" name="code" nullable="false" length="255" comment="Code"/>
- <column xsi:type="text" name="value" nullable="true" comment="Value"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="option_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_ITEM_OPTION_ITEM_ID_QUOTE_ITEM_ITEM_ID" table="quote_item_option"
- column="item_id" referenceTable="quote_item" referenceColumn="item_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_ITEM_OPTION_ITEM_ID" indexType="btree">
- <column name="item_id"/>
- </index>
- </table>
- <table name="quote_payment" resource="checkout" engine="innodb" comment="Sales Flat Quote Payment">
- <column xsi:type="int" name="payment_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Payment Id"/>
- <column xsi:type="int" name="quote_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Quote Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
- comment="Updated At"/>
- <column xsi:type="varchar" name="method" nullable="true" length="255" comment="Method"/>
- <column xsi:type="varchar" name="cc_type" nullable="true" length="255" comment="Cc Type"/>
- <column xsi:type="varchar" name="cc_number_enc" nullable="true" length="255" comment="Cc Number Enc"/>
- <column xsi:type="varchar" name="cc_last_4" nullable="true" length="255" comment="Cc Last 4"/>
- <column xsi:type="varchar" name="cc_cid_enc" nullable="true" length="255" comment="Cc Cid Enc"/>
- <column xsi:type="varchar" name="cc_owner" nullable="true" length="255" comment="Cc Owner"/>
- <column xsi:type="varchar" name="cc_exp_month" nullable="true" length="255" comment="Cc Exp Month"/>
- <column xsi:type="smallint" name="cc_exp_year" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Cc Exp Year"/>
- <column xsi:type="varchar" name="cc_ss_owner" nullable="true" length="255" comment="Cc Ss Owner"/>
- <column xsi:type="smallint" name="cc_ss_start_month" padding="5" unsigned="true" nullable="true"
- identity="false" default="0" comment="Cc Ss Start Month"/>
- <column xsi:type="smallint" name="cc_ss_start_year" padding="5" unsigned="true" nullable="true" identity="false"
- default="0" comment="Cc Ss Start Year"/>
- <column xsi:type="varchar" name="po_number" nullable="true" length="255" comment="Po Number"/>
- <column xsi:type="text" name="additional_data" nullable="true" comment="Additional Data"/>
- <column xsi:type="varchar" name="cc_ss_issue" nullable="true" length="255" comment="Cc Ss Issue"/>
- <column xsi:type="text" name="additional_information" nullable="true" comment="Additional Information"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="payment_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_PAYMENT_QUOTE_ID_QUOTE_ENTITY_ID" table="quote_payment"
- column="quote_id" referenceTable="quote" referenceColumn="entity_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_PAYMENT_QUOTE_ID" indexType="btree">
- <column name="quote_id"/>
- </index>
- </table>
- <table name="quote_shipping_rate" resource="checkout" engine="innodb" comment="Sales Flat Quote Shipping Rate">
- <column xsi:type="int" name="rate_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Rate Id"/>
- <column xsi:type="int" name="address_id" padding="10" unsigned="true" nullable="false" identity="false"
- default="0" comment="Address Id"/>
- <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
- comment="Created At"/>
- <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
- comment="Updated At"/>
- <column xsi:type="varchar" name="carrier" nullable="true" length="255" comment="Carrier"/>
- <column xsi:type="varchar" name="carrier_title" nullable="true" length="255" comment="Carrier Title"/>
- <column xsi:type="varchar" name="code" nullable="true" length="255" comment="Code"/>
- <column xsi:type="varchar" name="method" nullable="true" length="255" comment="Method"/>
- <column xsi:type="text" name="method_description" nullable="true" comment="Method Description"/>
- <column xsi:type="decimal" name="price" scale="4" precision="20" unsigned="false" nullable="false" default="0"
- comment="Price"/>
- <column xsi:type="text" name="error_message" nullable="true" comment="Error Message"/>
- <column xsi:type="text" name="method_title" nullable="true" comment="Method Title"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="rate_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_SHIPPING_RATE_ADDRESS_ID_QUOTE_ADDRESS_ADDRESS_ID"
- table="quote_shipping_rate" column="address_id" referenceTable="quote_address"
- referenceColumn="address_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_SHIPPING_RATE_ADDRESS_ID" indexType="btree">
- <column name="address_id"/>
- </index>
- </table>
- <table name="quote_id_mask" resource="checkout" engine="innodb" comment="Quote ID and masked ID mapping">
- <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Entity ID"/>
- <column xsi:type="int" name="quote_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="Quote ID"/>
- <column xsi:type="varchar" name="masked_id" nullable="true" length="32" comment="Masked ID"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="entity_id"/>
- <column name="quote_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="QUOTE_ID_MASK_QUOTE_ID_QUOTE_ENTITY_ID" table="quote_id_mask"
- column="quote_id" referenceTable="quote" referenceColumn="entity_id" onDelete="CASCADE"/>
- <index referenceId="QUOTE_ID_MASK_QUOTE_ID" indexType="btree">
- <column name="quote_id"/>
- </index>
- <index referenceId="QUOTE_ID_MASK_MASKED_ID" indexType="btree">
- <column name="masked_id"/>
- </index>
- </table>
- </schema>
|