1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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="url_rewrite" resource="default" engine="innodb" comment="Url Rewrites">
<column xsi:type="int" name="url_rewrite_id" padding="10" unsigned="true" nullable="false" identity="true"
comment="Rewrite Id"/>
<column xsi:type="varchar" name="entity_type" nullable="false" length="32" comment="Entity type code"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity ID"/>
<column xsi:type="varchar" name="request_path" nullable="true" length="255" comment="Request Path"/>
<column xsi:type="varchar" name="target_path" nullable="true" length="255" comment="Target Path"/>
<column xsi:type="smallint" name="redirect_type" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Redirect Type"/>
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Store Id"/>
<column xsi:type="varchar" name="description" nullable="true" length="255" comment="Description"/>
<column xsi:type="smallint" name="is_autogenerated" padding="5" unsigned="true" nullable="false"
identity="false" default="0" comment="Is rewrite generated automatically flag"/>
<column xsi:type="varchar" name="metadata" nullable="true" length="255" comment="Meta data for url rewrite"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="url_rewrite_id"/>
</constraint>
<constraint xsi:type="unique" referenceId="URL_REWRITE_REQUEST_PATH_STORE_ID">
<column name="request_path"/>
<column name="store_id"/>
</constraint>
<index referenceId="URL_REWRITE_TARGET_PATH" indexType="btree">
<column name="target_path"/>
</index>
<index referenceId="URL_REWRITE_STORE_ID_ENTITY_ID" indexType="btree">
<column name="store_id"/>
<column name="entity_id"/>
</index>
</table>
</schema>