<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Advanced Reports Base 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_reports_rule_product" class="Amasty\Reports\Model\Indexer\Rule\RuleIndexer" group="indexer">
        <subscriptions>
            <table name="amasty_reports_rule" entity_column="entity_id" subscription_model="Amasty\Reports\Model\Mview\View\Subscription" />
        </subscriptions>
    </view>
    <view id="amasty_reports_product_rule" class="Amasty\Reports\Model\Indexer\Rule\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>
