You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 line
2.1 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  9. <table name="admin_adobe_ims_webapi" resource="default" engine="innodb" comment="Admin Adobe IMS Webapi">
  10. <column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
  11. <column xsi:type="int" name="admin_user_id" unsigned="true" nullable="false" identity="false" default="0" comment="Admin User Id"/>
  12. <column xsi:type="varchar" name="access_token_hash" nullable="true" comment="Access Token Hash" length="255"/>
  13. <column xsi:type="text" name="access_token" nullable="true" comment="Access Token"/>
  14. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
  15. <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Updated At"/>
  16. <column xsi:type="timestamp" name="last_check_time" on_update="false" nullable="false" default="0" comment="Last check time"/>
  17. <column xsi:type="timestamp" name="access_token_expires_at" on_update="false" nullable="false" default="0" comment="Access Token Expires At"/>
  18. <index referenceId="ADMIN_ADOBE_IMS_WEBAPI_ADMIN_USER_ID" indexType="btree">
  19. <column name="admin_user_id"/>
  20. </index>
  21. <constraint xsi:type="primary" referenceId="PRIMARY">
  22. <column name="id"/>
  23. </constraint>
  24. <constraint xsi:type="unique" referenceId="ADMIN_ADOBE_IMS_WEBAPI_ACCESS_TOKEN_HASH">
  25. <column name="access_token_hash"/>
  26. </constraint>
  27. <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"/>
  28. </table>
  29. </schema>