forked from magento/adobe-stock-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Ludgero Miura
committed
May 12, 2019
1 parent
79ffc8b
commit d0d03cc
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?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_media_type" resource="default" engine="innodb" comment="Adobe Stock Media Type"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="int" name="adobe_id" nullable="false" comment="Adobe ID"/> | ||
<column xsi:type="varchar" name="name" nullable="false" comment="Name"/> | ||
<index referenceId="ADB_STK_MD_TP" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
</table> | ||
<table name="adobe_stock_category" resource="default" engine="innodb" comment="Adobe Stock Category"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="int" name="adobe_id" nullable="false" comment="Adobe ID"/> | ||
<column xsi:type="varchar" name="name" nullable="false" comment="Name"/> | ||
<index referenceId="ADB_STK_CT" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
</table> | ||
<table name="adobe_stock_creator" resource="default" engine="innodb" comment="Adobe Stock Creator"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="int" name="adobe_id" nullable="false" comment="Adobe ID"/> | ||
<column xsi:type="varchar" name="name" nullable="false" comment="Name"/> | ||
<index referenceId="ADB_STK_CREATOR" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
</table> | ||
<table name="adobe_stock_premium_level" resource="default" engine="innodb" comment="Adobe Stock Premium Level"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="int" name="adobe_id" nullable="false" comment="Adobe ID"/> | ||
<column xsi:type="varchar" name="name" nullable="false" comment="Name"/> | ||
<index referenceId="ADB_STK_PRM_LVL" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
</table> | ||
<table name="adobe_stock_asset" resource="default" engine="innodb" comment="Adobe Stock Asset"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="int" name="media_type_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Media Type ID"/> | ||
<column xsi:type="int" name="category_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Category ID"/> | ||
<column xsi:type="int" name="creator_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Creator ID"/> | ||
<column xsi:type="int" name="premium_level_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Premium Level ID"/> | ||
<column xsi:type="varchar" name="path" nullable="false" comment="Path"/> | ||
<column xsi:type="int" name="adobe_id" nullable="false" comment="Adobe ID"/> | ||
<column xsi:type="int" name="stock_id" nullable="false" comment="Stock ID"/> | ||
<column xsi:type="int" name="is_licensed" nullable="false" comment="Is Licensed"/> | ||
<column xsi:type="varchar" name="title" nullable="false" comment="Title"/> | ||
<column xsi:type="varchar" name="preview_url" nullable="false" comment="Preview Url"/> | ||
<column xsi:type="int" name="preview_width" nullable="false" comment="Preview Width"/> | ||
<column xsi:type="int" name="preview_height" nullable="false" comment="Preview Height"/> | ||
<column xsi:type="varchar" name="url" nullable="false" comment="Url"/> | ||
<column xsi:type="int" name="width" nullable="false" comment="Width"/> | ||
<column xsi:type="int" name="height" nullable="false" comment="Height"/> | ||
<column xsi:type="varchar" name="country_name" nullable="false" comment="Country Name"/> | ||
<column xsi:type="int" name="details_url" nullable="false" comment="Details Url"/> | ||
<column xsi:type="varchar" name="vector_type" nullable="false" comment="Vector Type"/> | ||
<column xsi:type="varchar" name="content_type" nullable="false" comment="Content Type"/> | ||
<column xsi:type="datetime" name="creation_date" nullable="false" comment="Content Type"/> | ||
<column xsi:type="datetime" name="created_at" nullable="false" comment="Created At"/> | ||
<column xsi:type="datetime" name="updated_at" nullable="false" comment="Update At"/> | ||
<index referenceId="ADB_STK_AST" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
<index referenceId="ADB_STK_MD_TP_ID_INDEX" indexType="btree"> | ||
<column name="media_type_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> | ||
<index referenceId="ADB_STK_PRM_LVL_INDEX" indexType="btree"> | ||
<column name="premium_level_id"/> | ||
</index> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_MD_TP_ID" | ||
table="adobe_stock_asset" column="media_type_id" referenceTable="adobe_stock_asset" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_CT_ID" | ||
table="adobe_stock_asset" column="category_id" referenceTable="adobe_stock_asset" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_CRT_ID" | ||
table="adobe_stock_creator" column="creator_id" referenceTable="adobe_stock_creator" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_PRM_LVL" | ||
table="adobe_stock_premium_level" column="premium_level_id" referenceTable="adobe_stock_premium_level" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
</table> | ||
<table name="adobe_stock_keyword" resource="default" engine="innodb" comment="Adobe Stock Keyword"> | ||
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true" comment="ID"/> | ||
<column xsi:type="varchar" name="keyword" nullable="false" comment="Keyword"/> | ||
<index referenceId="ADB_STK_KB_INDEX" indexType="btree"> | ||
<column name="id"/> | ||
</index> | ||
</table> | ||
<table name="adobe_stock_asset_keyword" resource="default" engine="innodb" comment="Adobe Stock Asset Keyword"> | ||
<column xsi:type="int" name="asset_id" padding="10" unsigned="true" nullable="false" comment="Asset ID"/> | ||
<column xsi:type="int" name="keyword_id" padding="10" unsigned="true" nullable="false" comment="Keyword ID"/> | ||
<index referenceId="ADB_STK_AST_KB_INDEX" indexType="btree"> | ||
<column name="asset_id"/> | ||
</index> | ||
<index referenceId="ADB_STK_AST_KWD_INDEX" indexType="asset_id"> | ||
<column name="asset_id"/> | ||
</index> | ||
<index referenceId="ADB_STK_PRM_LVL_INDEX" indexType="btree"> | ||
<column name="keyword_id"/> | ||
</index> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_AST_KWD" | ||
table="adobe_stock_asset_keyword" column="asset_id" referenceTable="adobe_stock_asset" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
<constraint xsi:type="foreign" referenceId="ADB_STK_PRM_LVL" | ||
table="adobe_stock_asset_keyword" column="keyword_id" referenceTable="adobe_stock_keyword" | ||
referenceColumn="id" onDelete="CASCADE"/> | ||
</table> | ||
</schema> |