File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-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="adobe_user_profile" resource="default" engine="innodb" comment="Adobe IMS User Profile">
<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" length="255" name="name" nullable="false" comment="Display Name"/>
<column xsi:type="varchar" length="255" name="email" nullable="false" comment="user profile email"/>
<column xsi:type="varchar" length="255" name="image" nullable="false" comment="user profile avatar"/>
<column xsi:type="varchar" length="255" name="account_type" nullable="true" comment="Account Type"/>
<column xsi:type="text" name="access_token" nullable="true" comment="Access Token"/>
<column xsi:type="text" name="refresh_token" nullable="true" comment="Refresh 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="access_token_expires_at" on_update="false" nullable="false" comment="Access Token Expires At"/>
<index referenceId="ADOBE_USER_PROFILE_ID" indexType="btree">
<column name="id"/>
</index>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="ADOBE_USER_PROFILE_ADMIN_USER_ID_ADMIN_USER_USER_ID" table="adobe_user_profile" column="admin_user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
</table>
</schema>