12345678910111213141516171819202122232425262728293031323334 |
- <?xml version="1.0"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
- <table name="ui_bookmark" resource="default" engine="innodb" comment="Bookmark">
- <column xsi:type="int" name="bookmark_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Bookmark identifier"/>
- <column xsi:type="int" name="user_id" padding="10" unsigned="true" nullable="false" identity="false"
- comment="User Id"/>
- <column xsi:type="varchar" name="namespace" nullable="false" length="255" comment="Bookmark namespace"/>
- <column xsi:type="varchar" name="identifier" nullable="false" length="255" comment="Bookmark Identifier"/>
- <column xsi:type="smallint" name="current" padding="6" unsigned="false" nullable="false" identity="false"
- comment="Mark current bookmark per user and identifier"/>
- <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Bookmark title"/>
- <column xsi:type="longtext" name="config" nullable="true" comment="Bookmark config"/>
- <column xsi:type="datetime" name="created_at" on_update="false" nullable="false" comment="Bookmark created at"/>
- <column xsi:type="datetime" name="updated_at" on_update="false" nullable="false" comment="Bookmark updated at"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="bookmark_id"/>
- </constraint>
- <constraint xsi:type="foreign" referenceId="UI_BOOKMARK_USER_ID_ADMIN_USER_USER_ID" table="ui_bookmark"
- column="user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
- <index referenceId="UI_BOOKMARK_USER_ID_NAMESPACE_IDENTIFIER" indexType="btree">
- <column name="user_id"/>
- <column name="namespace"/>
- <column name="identifier"/>
- </index>
- </table>
- </schema>
|