<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  <table name="mst_product_kit_kit" resource="default" engine="innodb" comment="mst_product_kit_kit">
    <column xsi:type="int" name="kit_id" padding="11" unsigned="false" nullable="false" identity="true" comment="kit_id"/>
    <column xsi:type="varchar" name="name" nullable="false" length="255" comment="name"/>
    <column xsi:type="varchar" name="label" nullable="true" length="255" comment="label"/>
    <column xsi:type="int" name="is_active" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="is_active"/>
    <column xsi:type="int" name="is_smart" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="is_smart"/>
    <column xsi:type="varchar" name="store_ids" nullable="true" length="255" comment="store_ids"/>
    <column xsi:type="varchar" name="customer_group_ids" nullable="true" length="255" comment="customer_group_ids"/>
    <column xsi:type="int" name="priority" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="priority"/>
    <column xsi:type="timestamp" name="active_from" on_update="false" nullable="true" comment="active_from"/>
    <column xsi:type="timestamp" name="active_to" on_update="false" nullable="true" comment="active_to"/>
    <column xsi:type="int" name="stop_rules_processing" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="stop_rules_processing"/>
    <column xsi:type="varchar" name="block_title" nullable="true" length="255" comment="block_title"/>
    <column xsi:type="varchar" name="price_pattern" nullable="true" length="25" comment="price_pattern"/>
    <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="created_at"/>
    <column xsi:type="boolean" name="skip_discounted_products" nullable="true" comment="skip_discounted_products"/>
    <constraint xsi:type="primary" referenceId="PRIMARY">
      <column name="kit_id"/>
    </constraint>
  </table>
  <table name="mst_product_kit_kit_item" resource="default" engine="innodb" comment="mst_product_kit_kit_item">
    <column xsi:type="int" name="item_id" padding="11" unsigned="false" nullable="false" identity="true" comment="item_id"/>
    <column xsi:type="int" name="kit_id" padding="11" unsigned="false" nullable="false" identity="false" comment="kit_id"/>
    <column xsi:type="int" name="product_id" padding="11" unsigned="false" nullable="false" identity="false" comment="product_id"/>
    <column xsi:type="int" name="position" padding="11" unsigned="false" nullable="false" identity="false" default="1" comment="position"/>
    <column xsi:type="int" name="is_optional" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="is_optional"/>
    <column xsi:type="int" name="qty" padding="11" unsigned="false" nullable="false" identity="false" default="1" comment="qty"/>
    <column xsi:type="varchar" name="discount_type" nullable="false" length="255" comment="discount_type"/>
    <column xsi:type="decimal" name="discount_amount" scale="4" precision="12" unsigned="false" nullable="false" default="0" comment="discount_amount"/>
    <column xsi:type="text" name="conditions" nullable="true" comment="conditions"/>
    <column xsi:type="boolean" name="is_primary" nullable="true" comment="is_primary"/>
    <constraint xsi:type="primary" referenceId="PRIMARY">
      <column name="item_id"/>
    </constraint>
  </table>
  <table name="mst_product_kit_index" resource="default" engine="innodb" comment="mst_product_kit_index">
    <column xsi:type="int" name="index_id" padding="11" unsigned="false" nullable="false" identity="true" comment="index_id"/>
    <column xsi:type="int" name="kit_id" padding="11" unsigned="false" nullable="false" identity="false" comment="kit_id"/>
    <column xsi:type="int" name="product_id" padding="11" unsigned="false" nullable="false" identity="false" comment="product_id"/>
    <column xsi:type="int" name="item_id" padding="11" unsigned="false" nullable="false" identity="false" comment="item_id"/>
    <column xsi:type="int" name="position" padding="11" unsigned="false" nullable="false" identity="false" comment="position"/>
    <column xsi:type="int" name="is_optional" padding="11" unsigned="false" nullable="false" identity="false" default="0" comment="is_optional"/>
    <column xsi:type="boolean" name="is_primary" nullable="true" comment="is_primary"/>
    <constraint xsi:type="primary" referenceId="PRIMARY">
      <column name="index_id"/>
    </constraint>
  </table>
</schema>
