<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Custom Checkout Fields 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_order_attribute_values" class="Amasty\Orderattr\Model\Indexer\Mview\OrderAction" group="indexer">
        <subscriptions>
            <table name="amasty_order_attribute_entity_datetime" entity_column="entity_id"/>
            <table name="amasty_order_attribute_entity_decimal" entity_column="entity_id"/>
            <table name="amasty_order_attribute_entity_int" entity_column="entity_id"/>
            <table name="amasty_order_attribute_entity_text" entity_column="entity_id"/>
            <table name="amasty_order_attribute_entity_varchar" entity_column="entity_id"/>
        </subscriptions>
    </view>
    <view id="amasty_product_order_attribute" class="Amasty\Orderattr\Model\Indexer\Conditions\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"/>
            <table name="cataloginventory_stock_item" entity_column="product_id"/>
        </subscriptions>
    </view>
    <view id="amasty_order_attribute_product" class="Amasty\Orderattr\Model\Indexer\Conditions\AttributeIndexer" group="indexer">
        <subscriptions>
            <table name="amasty_order_attribute_eav_attribute" entity_column="attribute_id"/>
            <table name="amasty_order_attribute_eav_attribute_store" entity_column="attribute_id"/>
        </subscriptions>
    </view>
</config>
