25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

30 satır
2.2 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="adobe_user_profile" resource="default" engine="innodb" comment="Adobe IMS User Profile">
  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" length="255" name="name" nullable="false" comment="Display Name"/>
  13. <column xsi:type="varchar" length="255" name="email" nullable="false" comment="user profile email"/>
  14. <column xsi:type="varchar" length="255" name="image" nullable="false" comment="user profile avatar"/>
  15. <column xsi:type="varchar" length="255" name="account_type" nullable="true" comment="Account Type"/>
  16. <column xsi:type="text" name="access_token" nullable="true" comment="Access Token"/>
  17. <column xsi:type="text" name="refresh_token" nullable="true" comment="Refresh Token"/>
  18. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
  19. <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP" comment="Updated At"/>
  20. <column xsi:type="timestamp" name="access_token_expires_at" on_update="false" nullable="false" default="0" comment="Access Token Expires At"/>
  21. <index referenceId="ADOBE_USER_PROFILE_ADMIN_USER_ID" indexType="btree">
  22. <column name="admin_user_id"/>
  23. </index>
  24. <constraint xsi:type="primary" referenceId="PRIMARY">
  25. <column name="id"/>
  26. </constraint>
  27. <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"/>
  28. </table>
  29. </schema>