<?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="inventory_pickup_location_quote_address" resource="checkout" engine="innodb">
        <column xsi:type="int" name="address_id" unsigned="true" nullable="false" identity="true" comment="Quote Address ID"/>
        <column xsi:type="varchar" name="pickup_location_code" nullable="false" comment="Pickup Location Code"/>
        <constraint xsi:type="foreign" referenceId="INV_PICKUP_LOCATION_QUOTE_ADDR_ADDR_ID_QUOTE_ADDR_ADDR_ID" table="inventory_pickup_location_quote_address" column="address_id" referenceTable="quote_address"  referenceColumn="address_id" onDelete="CASCADE"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="address_id"/>
        </constraint>
    </table>
</schema>
