db_schema.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  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="ui_bookmark" resource="default" engine="innodb" comment="Bookmark">
  11. <column xsi:type="int" name="bookmark_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Bookmark identifier"/>
  13. <column xsi:type="int" name="user_id" padding="10" unsigned="true" nullable="false" identity="false"
  14. comment="User Id"/>
  15. <column xsi:type="varchar" name="namespace" nullable="false" length="255" comment="Bookmark namespace"/>
  16. <column xsi:type="varchar" name="identifier" nullable="false" length="255" comment="Bookmark Identifier"/>
  17. <column xsi:type="smallint" name="current" padding="6" unsigned="false" nullable="false" identity="false"
  18. comment="Mark current bookmark per user and identifier"/>
  19. <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Bookmark title"/>
  20. <column xsi:type="longtext" name="config" nullable="true" comment="Bookmark config"/>
  21. <column xsi:type="datetime" name="created_at" on_update="false" nullable="false" comment="Bookmark created at"/>
  22. <column xsi:type="datetime" name="updated_at" on_update="false" nullable="false" comment="Bookmark updated at"/>
  23. <constraint xsi:type="primary" referenceId="PRIMARY">
  24. <column name="bookmark_id"/>
  25. </constraint>
  26. <constraint xsi:type="foreign" referenceId="UI_BOOKMARK_USER_ID_ADMIN_USER_USER_ID" table="ui_bookmark"
  27. column="user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
  28. <index referenceId="UI_BOOKMARK_USER_ID_NAMESPACE_IDENTIFIER" indexType="btree">
  29. <column name="user_id"/>
  30. <column name="namespace"/>
  31. <column name="identifier"/>
  32. </index>
  33. </table>
  34. </schema>