31 lines
1.9 KiB
XML
31 lines
1.9 KiB
XML
<?xml version="1.0"?>
|
|
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
|
<table name="esun_filemanager_file" resource="default" engine="innodb" comment="File Manager Files">
|
|
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="ID"/>
|
|
<column xsi:type="varchar" name="filename" nullable="false" length="255" comment="File Name"/>
|
|
<column xsi:type="varchar" name="filepath" nullable="false" length="512" comment="Media-relative File Path"/>
|
|
<column xsi:type="text" name="url" nullable="false" comment="Public URL"/>
|
|
<column xsi:type="varchar" name="extension" nullable="false" length="32" comment="Extension"/>
|
|
<column xsi:type="varchar" name="mime_type" nullable="false" length="255" comment="MIME Type"/>
|
|
<column xsi:type="bigint" name="size" unsigned="true" nullable="false" default="0" comment="Size in Bytes"/>
|
|
<column xsi:type="timestamp" name="created_at" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
|
|
<column xsi:type="timestamp" name="updated_at" nullable="false" default="CURRENT_TIMESTAMP" on_update="true" comment="Updated At"/>
|
|
<constraint xsi:type="primary" referenceId="PRIMARY">
|
|
<column name="id"/>
|
|
</constraint>
|
|
<constraint xsi:type="unique" referenceId="ESUN_FILEMANAGER_FILE_FILEPATH_UNQ">
|
|
<column name="filepath"/>
|
|
</constraint>
|
|
<index referenceId="ESUN_FILEMANAGER_FILE_FILENAME_IDX" indexType="btree">
|
|
<column name="filename"/>
|
|
</index>
|
|
<index referenceId="ESUN_FILEMANAGER_FILE_EXTENSION_IDX" indexType="btree">
|
|
<column name="extension"/>
|
|
</index>
|
|
<index referenceId="ESUN_FILEMANAGER_FILE_CREATED_AT_IDX" indexType="btree">
|
|
<column name="created_at"/>
|
|
</index>
|
|
</table>
|
|
</schema>
|