<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Import Products for Magento 2
 */-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  <table name="amasty_product_import_profile" resource="default" engine="innodb" comment="amasty_product_import_profile">
    <column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Id"/>
    <column xsi:type="varchar" name="name" nullable="false" length="127" comment="Name"/>
    <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created_at"/>
    <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Updated_at"/>
    <column xsi:type="datetime" name="imported_at" on_update="false" nullable="false" comment="Imported_at"/>
    <column xsi:type="longblob" name="serialized_config" nullable="false" comment="Serialized_config"/>
    <column xsi:type="varchar" name="source_type" nullable="false" length="255" comment="Source_type"/>
    <column xsi:type="varchar" name="execution_type" nullable="false" length="255" comment="Execution_type"/>
    <column xsi:type="text" name="product_actions" nullable="false" comment="Product_actions"/>
    <constraint xsi:type="primary" referenceId="PRIMARY">
      <column name="id"/>
    </constraint>
  </table>
  <table name="amasty_product_import_entity_log" resource="default" engine="innodb" comment="amasty_product_import_entity_log">
    <column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="Id"/>
    <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Entity_id"/>
    <column xsi:type="varchar" name="process_identity" nullable="false" length="127" comment="Process_identity"/>
    <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created_at"/>
    <constraint xsi:type="primary" referenceId="PRIMARY">
      <column name="id"/>
    </constraint>
  </table>
</schema>
