<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">

    <table name="customeractivation_approved_domains" resource="default" engine="innodb"
           comment="Pre-Approved Email Domains to Activate">

        <column xsi:type="smallint" name="id" padding="6" unsigned="false" nullable="false" identity="true"
                comment="Email Domain ID"/>

        <column xsi:type="varchar" name="domain_name" nullable="false" length="255" comment="Domain Name"/>

        <column xsi:type="int" name="qty_reported" nullable="false" unsigned="true"
                comment="Source Reported Inventory On Hand"/>

        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
                comment="Creation Time"/>
        <constraint xsi:type="primary" name="PRIMARY">
            <column name="id"/>
        </constraint>
    </table>
    <table name="customeractivation_blocked_domains" resource="default" engine="innodb"
           comment="Email Domains to Block">

        <column xsi:type="smallint" name="id" padding="6" unsigned="false" nullable="false" identity="true"
                comment="Email Domain ID"/>

        <column xsi:type="varchar" name="domain_name" nullable="false" length="255" comment="Domain Name"/>

        <column xsi:type="int" name="qty_reported" nullable="false" unsigned="true"
                comment="Source Reported Inventory On Hand"/>

        <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
                comment="Creation Time"/>
        <constraint xsi:type="primary" name="PRIMARY">
            <column name="id"/>
        </constraint>
    </table>

</schema>