<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
 * @package Improved Layered Navigation Base 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_amshopby_cms_page" resource="default" engine="innodb" comment="amasty_amshopby_cms_page">
        <column xsi:type="smallint" name="entity_id" padding="6" unsigned="true" nullable="false" identity="true"
                comment="Entity_id"/>
        <column xsi:type="smallint" name="page_id" padding="6" unsigned="false" nullable="false" identity="false"
                comment="Page_id"/>
        <column xsi:type="boolean" name="enabled" nullable="false" comment="Enabled"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="entity_id"/>
        </constraint>
    </table>

    <table name="review_entity_summary" resource="default">
        <index referenceId="amasty_shopby_rating_filter" indexType="btree">
            <column name="entity_pk_value"/>
            <column name="entity_type"/>
            <column name="store_id"/>
        </index>
    </table>
</schema>
