db_schema.xml 1.4 KB

1234567891011121314151617181920212223242526272829
  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="sendfriend_log" resource="default" engine="innodb" comment="Send to friend function log storage table">
  11. <column xsi:type="int" name="log_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Log ID"/>
  13. <column xsi:type="bigint" name="ip" padding="20" unsigned="true" nullable="false" identity="false" default="0"
  14. comment="Customer IP address"/>
  15. <column xsi:type="int" name="time" padding="10" unsigned="true" nullable="false" identity="false" default="0"
  16. comment="Log time"/>
  17. <column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
  18. default="0" comment="Website ID"/>
  19. <constraint xsi:type="primary" referenceId="PRIMARY">
  20. <column name="log_id"/>
  21. </constraint>
  22. <index referenceId="SENDFRIEND_LOG_IP" indexType="btree">
  23. <column name="ip"/>
  24. </index>
  25. <index referenceId="SENDFRIEND_LOG_TIME" indexType="btree">
  26. <column name="time"/>
  27. </index>
  28. </table>
  29. </schema>