<?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="vcomm_payby_transactions" resource="default" engine="innodb"
           comment="PayBy Mobile Transactions Record">
        <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"/>
        <column xsi:type="varchar" name="status" length="20" nullable="false" />
        <column xsi:type="varchar" name="order_id" nullable="false" length="20"/>
        <column xsi:type="timestamp" name="created_at" nullable="false" on_update="false"/>
        <column xsi:type="timestamp" name="updated_at" nullable="false" on_update="true"/>
        <column xsi:type="text" name="additional_info" nullable="false" />
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="entity_id"/>
        </constraint>
        <index referenceId="VCOMM_PAYBY_TRANSACTIONS_ENTITY_ID" indexType="btree">
            <column name="entity_id"/>
        </index>
    </table>
</schema>
