<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="djo_quote_item_save_for_later" resource="default" engine="innodb" comment="DJO Quote Item Save For Later Table">
        <column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="ID"/>

        <column xsi:type="int" name="customer_id" unsigned="true" nullable="false" identity="false" comment="Customer ID"/>
        <column xsi:type="int" name="subaccount_id" unsigned="true" nullable="true" identity="false" comment="Subaccount ID"/>

        <column xsi:type="int" name="product_id" unsigned="true" nullable="true" identity="false" comment="Product ID"/>

        <column xsi:type="text" name="additional_data" nullable="true" comment="Additional Data"/>

        <column xsi:type="int" name="quote_id" unsigned="true" nullable="true" identity="false" comment="Quote ID"/>
        <column xsi:type="int" name="quote_item_id" unsigned="true" nullable="true" identity="false" comment="Quote Item ID"/>

        <column xsi:type="varchar" name="bind_id" nullable="true" length="255" comment="Bind ID"/>

        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Creation Time"/>
        <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Update Time"/>

        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="id"/>
        </constraint>

        <index referenceId="DJO_COMFORT_SCAN_CUSTOMER_ID" indexType="btree">
            <column name="customer_id"/>
        </index>
    </table>
</schema>
