| Current Path : /srv/web/sites/trentinoplant.it/httpdocs/vendor1/magento/module-admin-adobe-ims/etc/ |
| Current File : /srv/web/sites/trentinoplant.it/httpdocs/vendor1/magento/module-admin-adobe-ims/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="admin_adobe_ims_webapi" resource="default" engine="innodb" comment="Admin Adobe IMS Webapi">
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="int" name="admin_user_id" unsigned="true" nullable="false" identity="false" default="0" comment="Admin User Id"/>
<column xsi:type="varchar" name="access_token_hash" nullable="true" comment="Access Token Hash" length="255"/>
<column xsi:type="text" name="access_token" nullable="true" comment="Access Token"/>
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Updated At"/>
<column xsi:type="timestamp" name="last_check_time" on_update="false" nullable="false" default="0" comment="Last check time"/>
<column xsi:type="timestamp" name="access_token_expires_at" on_update="false" nullable="false" default="0" comment="Access Token Expires At"/>
<index referenceId="ADMIN_ADOBE_IMS_WEBAPI_ADMIN_USER_ID" indexType="btree">
<column name="admin_user_id"/>
</index>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="unique" referenceId="ADMIN_ADOBE_IMS_WEBAPI_ACCESS_TOKEN_HASH">
<column name="access_token_hash"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ADMIN_ADOBE_IMS_WEBAPI_ADMIN_USER_ID_ADMIN_USER_USER_ID" table="admin_adobe_ims_webapi" column="admin_user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
</table>
</schema>