Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

71 строка
4.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"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="admin_user_session" resource="default" engine="innodb" comment="Admin User sessions table">
  11. <column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true"
  12. comment="Entity ID"/>
  13. <column xsi:type="varchar" name="session_id" nullable="true" length="1"
  14. comment="Deprecated: Session ID value no longer used"/>
  15. <column xsi:type="int" name="user_id" unsigned="true" nullable="true" identity="false"
  16. comment="Admin User ID"/>
  17. <column xsi:type="smallint" name="status" unsigned="true" nullable="false" identity="false"
  18. default="1" comment="Current Session status"/>
  19. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  20. comment="Created Time"/>
  21. <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  22. comment="Update Time"/>
  23. <column xsi:type="varchar" name="ip" nullable="false" length="15" onCreate="migrateDataFrom(ip)"
  24. comment="Remote user IP"/>
  25. <constraint xsi:type="primary" referenceId="PRIMARY">
  26. <column name="id"/>
  27. </constraint>
  28. <constraint xsi:type="foreign" referenceId="ADMIN_USER_SESSION_USER_ID_ADMIN_USER_USER_ID" table="admin_user_session"
  29. column="user_id" referenceTable="admin_user" referenceColumn="user_id" onDelete="CASCADE"/>
  30. <index referenceId="ADMIN_USER_SESSION_SESSION_ID" indexType="btree">
  31. <column name="session_id"/>
  32. </index>
  33. <index referenceId="ADMIN_USER_SESSION_USER_ID" indexType="btree">
  34. <column name="user_id"/>
  35. </index>
  36. </table>
  37. <table name="password_reset_request_event" resource="default" engine="innodb"
  38. comment="Password Reset Request Event under a security control">
  39. <column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true"
  40. comment="Entity ID"/>
  41. <column xsi:type="smallint" name="request_type" unsigned="true" nullable="false" identity="false"
  42. comment="Type of the event under a security control"/>
  43. <column xsi:type="varchar" name="account_reference" nullable="true" length="255"
  44. comment="An identifier for existing account or another target"/>
  45. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  46. comment="Timestamp when the event occurs"/>
  47. <column xsi:type="varchar" name="ip" nullable="false" length="15" onCreate="migrateDataFrom(ip)"
  48. comment="Remote user IP"/>
  49. <constraint xsi:type="primary" referenceId="PRIMARY">
  50. <column name="id"/>
  51. </constraint>
  52. <index referenceId="PASSWORD_RESET_REQUEST_EVENT_ACCOUNT_REFERENCE" indexType="btree">
  53. <column name="account_reference"/>
  54. </index>
  55. <index referenceId="PASSWORD_RESET_REQUEST_EVENT_CREATED_AT" indexType="btree">
  56. <column name="created_at"/>
  57. </index>
  58. </table>
  59. <table name="admin_user_expiration" resource="default" engine="innodb" comment="Admin User expiration dates table">
  60. <column xsi:type="int" name="user_id" unsigned="true" nullable="false" identity="false"
  61. comment="User ID"/>
  62. <column xsi:type="datetime" name="expires_at" nullable="false" default="0" comment="User Expiration Date"/>
  63. <constraint xsi:type="primary" referenceId="PRIMARY">
  64. <column name="user_id"/>
  65. </constraint>
  66. <constraint xsi:type="foreign" referenceId="ADMIN_USER_EXPIRATION_USER_ID_ADMIN_USER_USER_ID"
  67. table="admin_user_expiration" column="user_id" referenceTable="admin_user"
  68. referenceColumn="user_id" onDelete="CASCADE"/>
  69. </table>
  70. </schema>