<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="productdesigner_photobook_layouts" engine="innodb" resource="default" comment="productdesigner_photobook_layouts">
        <column xsi:type="int" name="id" identity="true"  nullable="false" padding="10" unsigned="true" comment="Primary key" />
        <column xsi:type="varchar" name="layout_name" default="" nullable="false" length="255" comment="layout_name" />
        <column xsi:type="varchar" name="layout_orientation" default="" nullable="false" length="255" comment="layout_orientation" />
        <column xsi:type="varchar" name="layout_image" default="" nullable="false" length="255" comment="layout_image" />
        <column xsi:type="varchar" name="layout_masking_image" default="" nullable="false" length="255" comment="layout_masking_image" />
        <column xsi:type="varchar" name="products" default="" nullable="true" length="255" comment="products" />
        <column xsi:type="smallint" name="status" nullable="false" default='0' padding='6' comment="status" />
        <column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="created_at" on_update="false"/>
        <column xsi:type="timestamp" name="updated_at" nullable="true" default="CURRENT_TIMESTAMP" comment="Updated_at" on_update="true"/>
        <constraint referenceId="PRIMARY" xsi:type="primary">
            <column name="id"/>
        </constraint>
    </table>

    <table name="productdesigner_spine_width" engine="innodb" resource="default" comment="productdesigner_spine_width">
        <column xsi:type="int" name="id" identity="true"  nullable="false" padding="10" unsigned="true" comment="Primary key" />
        <column xsi:type="varchar" name="from_page" default="" nullable="false" length="255" comment="from_page" />
        <column xsi:type="int" name="to_page" unsigned="true" nullable="false" identity="false" comment="to_page"/>
        <column xsi:type="varchar" name="width" default="" nullable="true" length="255" comment="width" />
        <column xsi:type="varchar" name="products" default="" nullable="true" length="255" comment="products" />
        <column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="created_at" on_update="false"/>
        <column xsi:type="timestamp" name="updated_at" nullable="true" default="CURRENT_TIMESTAMP" comment="Updated_at" on_update="true"/>
        <constraint referenceId="PRIMARY" xsi:type="primary">
            <column name="id"/>
        </constraint>
    </table>

    <table name="productdesigner_blankproduct" engine="innodb" resource="default" comment="productdesigner_blankproduct">
        <column xsi:type="int" name="id" identity="true"  nullable="false" padding="10" unsigned="true" comment="Primary key" />
        <column xsi:type="text" name="product_orientation" nullable="false" comment="product_orientation" />
        <column xsi:type="text" name="product_output_type" nullable="false" comment="product_output_type"/>
        <column xsi:type="text" name="product_id" nullable="false" comment="product_id" />
        <column xsi:type="timestamp" name="created_at" nullable="true" default="CURRENT_TIMESTAMP" comment="created_at" on_update="false"/>
        <column xsi:type="timestamp" name="updated_at" nullable="true" default="CURRENT_TIMESTAMP" comment="Updated_at" on_update="true"/>
        <constraint referenceId="PRIMARY" xsi:type="primary">
            <column name="id"/>
        </constraint>
    </table>
    <!-- Photo Album configuration -->
    <table name="productdesigner_config" engine="innodb" resource="default" comment="Product Designer condfiguration">
        <column xsi:type="mediumtext" name="photo_album_config" nullable="false" comment="Photo Album Configuration" />
    </table>
</schema>