<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Rules Tiered Discount by Amasty
 */-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="amasty_amrules_tiered_discount" resource="default" engine="innodb" comment="TieredDiscount">
        <column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true"
                comment="Id Column"/>
        <column xsi:type="int" name="rule_id" padding="10" unsigned="true" nullable="false" identity="false"
                comment="Rule Id Column"/>
        <column xsi:type="int" name="quantity" unsigned="true" nullable="false"
                comment="Quantity Column"/>
        <column xsi:type="decimal" name="discount" precision="20" scale="2" unsigned="true" nullable="false"
                comment="Discount Column"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="id"/>
        </constraint>
        <index referenceId="AMASTY_AMRULES_TIERED_DISCOUNT_RULE_ID" indexType="btree">
            <column name="rule_id"/>
        </index>
    </table>
</schema>
