| Current Path : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-adobe-stock-asset/etc/ |
| Current File : /srv/web/sites/trentinoplant.it/httpdocs/vendor/magento/module-adobe-stock-asset/etc/db_schema.xml |
<?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="adobe_stock_asset" resource="default" engine="innodb" comment="Adobe Stock Asset">
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="int" name="media_gallery_id" unsigned="true" nullable="true" identity="false" comment="Media gallery ID"/>
<column xsi:type="int" name="category_id" unsigned="true" nullable="true" identity="false" comment="Category ID"/>
<column xsi:type="int" name="creator_id" unsigned="true" nullable="true" identity="false" comment="Creator ID"/>
<column xsi:type="int" name="is_licensed" unsigned="true" nullable="false" identity="false" default="0" comment="Is Licensed"/>
<column xsi:type="varchar" name="creation_date" length="255" nullable="true" comment="Creation Date"/>
<index referenceId="ADB_STK_AST" indexType="btree">
<column name="id"/>
</index>
<index referenceId="ADB_STK_CT_ID_INDEX" indexType="btree">
<column name="category_id"/>
</index>
<index referenceId="ADB_STK_CRT_ID_INDEX" indexType="btree">
<column name="creator_id"/>
</index>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ADOBE_STOCK_ASSET_CATEGORY_ID_ADOBE_STOCK_CATEGORY_ID" table="adobe_stock_asset" column="category_id" referenceTable="adobe_stock_category" referenceColumn="id" onDelete="SET NULL"/>
<constraint xsi:type="foreign" referenceId="ADOBE_STOCK_ASSET_CREATOR_ID_ADOBE_STOCK_CREATOR_ID" table="adobe_stock_asset" column="creator_id" referenceTable="adobe_stock_creator" referenceColumn="id" onDelete="SET NULL"/>
<constraint xsi:type="foreign" referenceId="ADOBE_STOCK_ASSET_MEDIA_GALLERY_ID_MEDIA_GALLERY_ASSET_ID" table="adobe_stock_asset" column="media_gallery_id" referenceTable="media_gallery_asset" referenceColumn="id" onDelete="CASCADE"/>
</table>
<table name="adobe_stock_category" resource="default" engine="innodb" comment="Adobe Stock Category">
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="varchar" length="255" name="name" nullable="true" comment="Name"/>
<index referenceId="ADB_STK_CT" indexType="btree">
<column name="id"/>
</index>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
</table>
<table name="adobe_stock_creator" resource="default" engine="innodb" comment="Adobe Stock Creator">
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="ID"/>
<column xsi:type="varchar" length="255" name="name" nullable="true" comment="Asset creator's name"/>
<index referenceId="ADB_STK_KB_INDEX" indexType="btree">
<column name="id"/>
</index>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
</table>
</schema>