db_schema.xml 1.6 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="sitemap" resource="default" engine="innodb" comment="XML Sitemap">
  11. <column xsi:type="int" name="sitemap_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Sitemap Id"/>
  13. <column xsi:type="varchar" name="sitemap_type" nullable="true" length="32" comment="Sitemap Type"/>
  14. <column xsi:type="varchar" name="sitemap_filename" nullable="true" length="32" comment="Sitemap Filename"/>
  15. <column xsi:type="varchar" name="sitemap_path" nullable="true" length="255" comment="Sitemap Path"/>
  16. <column xsi:type="timestamp" name="sitemap_time" on_update="false" nullable="true" comment="Sitemap Time"/>
  17. <column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
  18. default="0" comment="Store id"/>
  19. <constraint xsi:type="primary" referenceId="PRIMARY">
  20. <column name="sitemap_id"/>
  21. </constraint>
  22. <constraint xsi:type="foreign" referenceId="SITEMAP_STORE_ID_STORE_STORE_ID" table="sitemap" column="store_id"
  23. referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
  24. <index referenceId="SITEMAP_STORE_ID" indexType="btree">
  25. <column name="store_id"/>
  26. </index>
  27. </table>
  28. </schema>