<?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="autogedal_label" resource="default" engine="innodb">
        <column xsi:type="int" name="label_id" identity="true" unsigned="true" nullable="false"
                comment="Label ID"/>
        <column xsi:type="smallint" name="pos" nullable="false" comment="Position"/>
        <column xsi:type="smallint" name="is_single" nullable="false" comment="Is Single"/>
        <column xsi:type="varchar" name="name" length="255" nullable="false" comment="Name"/>
        <column xsi:type="smallint" name="is_active" unsigned="true" nullable="false" default="1"
                comment="Is Active"/>
        <column xsi:type="varchar" name="stores" length="255" nullable="false" comment="Stores CSV"/>
        <column xsi:type="varchar" name="prod_txt" length="255" nullable="false" comment="Product Text"/>
        <column xsi:type="varchar" name="prod_img" length="255" nullable="false" comment="Product Image"/>
        <column xsi:type="varchar" name="prod_label_color" length="255" nullable="false"
                comment="Product Label Color"/>
        <column xsi:type="smallint" name="prod_pos" nullable="false" comment="Product Position"/>
        <column xsi:type="varchar" name="prod_style" length="255" nullable="false" comment="Product Style"/>
        <column xsi:type="smallint" name="category_enabled" unsigned="true" nullable="false" default="0"
                comment="Category Enabled"/>
        <column xsi:type="smallint" name="is_new" nullable="false" comment="Is New"/>
        <column xsi:type="smallint" name="is_sale" nullable="false" comment="Is Sale"/>
        <column xsi:type="smallint" name="special_price_only" unsigned="true" nullable="false" default="0"
                comment="Special Price Only"/>
        <column xsi:type="smallint" name="include_type" nullable="false" comment="Include Type"/>
        <column xsi:type="text" name="include_sku" nullable="true" comment="Include SKU List"/>
        <column xsi:type="text" name="category" nullable="true" comment="Category IDs"/>
        <column xsi:type="varchar" name="attr_code" length="255" nullable="false" comment="Attribute Code"/>
        <column xsi:type="smallint" name="attr_multi" unsigned="true" nullable="false" default="0"
                comment="Attribute Multi"/>
        <column xsi:type="smallint" name="product_stock_enabled" unsigned="true" nullable="false" default="0"
                comment="Product Stock Enabled"/>
        <column xsi:type="smallint" name="attr_rule" unsigned="true" nullable="false" default="0"
                comment="Attribute Rule"/>
        <column xsi:type="varchar" name="attr_value" length="255" nullable="false" comment="Attribute Value"/>
        <column xsi:type="int" name="stock_less" nullable="false" comment="Stock Less"/>
        <column xsi:type="int" name="stock_more" nullable="false" comment="Stock More"/>
        <column xsi:type="smallint" name="stock_status" nullable="false" comment="Stock Status"/>
        <column xsi:type="datetime" name="from_date" nullable="true" comment="From Date"/>
        <column xsi:type="datetime" name="to_date" nullable="true" comment="To Date"/>
        <column xsi:type="smallint" name="date_range_enabled" unsigned="true" nullable="false" default="0"
                comment="Date Range Enabled"/>
        <column xsi:type="decimal" name="from_price" scale="4" precision="12" nullable="false" default="0.0000"
                comment="From Price"/>
        <column xsi:type="decimal" name="to_price" scale="4" precision="12" nullable="false" default="0.0000"
                comment="To Price"/>
        <column xsi:type="smallint" name="by_price" unsigned="true" nullable="false" default="0"
                comment="By Price Mode"/>
        <column xsi:type="smallint" name="price_range_enabled" unsigned="true" nullable="false" default="0"
                comment="Price Range Enabled"/>
        <column xsi:type="varchar" name="customer_groups" length="255" nullable="false" comment="Customer Groups"/>
        <column xsi:type="smallint" name="customer_group_enabled" unsigned="true" nullable="false" default="0"
                comment="Customer Group Enabled"/>
        <column xsi:type="smallint" name="use_for_parent" unsigned="true" nullable="false" default="0"
                comment="Use for Parent"/>
        <column xsi:type="varchar" name="prod_text_style" length="1024" nullable="false" default=""
                comment="Product Text Style"/>
        <column xsi:type="varchar" name="prod_image_width" length="255" nullable="false" comment="Product Image Width"/>
        <column xsi:type="varchar" name="prod_image_height" length="255" nullable="false" comment="Product Image Height"/>

        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="label_id"/>
        </constraint>
    </table>

</schema>
