<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* @author Amasty Team
* @copyright Copyright (c) 2022 Amasty (https://www.amasty.com)
* @package Automatic Related Products for Magento 2
*/-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Mview/etc/mview.xsd">
    <view id="amasty_mostviewed_rule_product" class="Amasty\Mostviewed\Model\Indexer\RuleIndexer" group="indexer">
        <subscriptions>
            <table name="amasty_mostviewed_group" entity_column="group_id"/>
        </subscriptions>
    </view>
    <view id="amasty_mostviewed_product_rule" class="Amasty\Mostviewed\Model\Indexer\ProductIndexer" group="indexer">
        <subscriptions>
            <table name="catalog_product_entity" entity_column="entity_id"/>
            <table name="catalog_product_entity_datetime" entity_column="entity_id"/>
            <table name="catalog_product_entity_decimal" entity_column="entity_id"/>
            <table name="catalog_product_entity_int" entity_column="entity_id"/>
            <table name="catalog_product_entity_text" entity_column="entity_id"/>
            <table name="catalog_product_entity_tier_price" entity_column="entity_id"/>
            <table name="catalog_product_entity_varchar" entity_column="entity_id"/>
            <table name="catalog_category_product" entity_column="product_id"/>
        </subscriptions>
    </view>
</config>
