<?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="zhik_dhl_dtc" resource="default" engine="innodb" comment="DHL DTC API call logs">
        <column xsi:type="int" name="id" unsigned="false" nullable="false" identity="true" comment="ID"/>
        <column xsi:type="varchar" name="service" default="DHL" nullable="false" comment="Service provider"/>
        <column xsi:type="varchar" name="source_country" nullable="false" comment="Source Country"/>
        <column xsi:type="varchar" name="destination_country" nullable="false" comment="Destination Country"/>
        <column xsi:type="varchar" name="customer_ip" nullable="false" comment="Customer IP address"/>
        <column xsi:type="datetime" name="time_stamp" nullable="false" default="CURRENT_TIMESTAMP" on_update="false" comment="Timestamp for the API call"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="id"/>
        </constraint>
    </table>
</schema>
