<?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="eadesign_romcity" resource="default" engine="innodb" comment="Cities data">
        <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
                comment="City ID"/>
        <column xsi:type="int" name="region_id" padding="10" unsigned="true" nullable="false" identity="false"
                default="0" comment="Region id"/>
        <column xsi:type="text" name="city" nullable="false" comment="City name"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="entity_id"/>
        </constraint>

        <index referenceId="EADESIGN_ROMCITY_REGION_ID" indexType="btree">
            <column name="region_id"/>
        </index>
    </table>
</schema>
