db_schema.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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="adminnotification_inbox" resource="default" engine="innodb" comment="Adminnotification Inbox">
  11. <column xsi:type="int" name="notification_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Notification id"/>
  13. <column xsi:type="smallint" name="severity" padding="5" unsigned="true" nullable="false" identity="false"
  14. default="0" comment="Problem type"/>
  15. <column xsi:type="timestamp" name="date_added" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  16. comment="Create date"/>
  17. <column xsi:type="varchar" name="title" nullable="false" length="255" comment="Title"/>
  18. <column xsi:type="text" name="description" nullable="true" comment="Description"/>
  19. <column xsi:type="varchar" name="url" nullable="true" length="255" comment="Url"/>
  20. <column xsi:type="smallint" name="is_read" padding="5" unsigned="true" nullable="false" identity="false"
  21. default="0" comment="Flag if notification read"/>
  22. <column xsi:type="smallint" name="is_remove" padding="5" unsigned="true" nullable="false" identity="false"
  23. default="0" comment="Flag if notification might be removed"/>
  24. <constraint xsi:type="primary" referenceId="PRIMARY">
  25. <column name="notification_id"/>
  26. </constraint>
  27. <index referenceId="ADMINNOTIFICATION_INBOX_SEVERITY" indexType="btree">
  28. <column name="severity"/>
  29. </index>
  30. <index referenceId="ADMINNOTIFICATION_INBOX_IS_READ" indexType="btree">
  31. <column name="is_read"/>
  32. </index>
  33. <index referenceId="ADMINNOTIFICATION_INBOX_IS_REMOVE" indexType="btree">
  34. <column name="is_remove"/>
  35. </index>
  36. </table>
  37. <table name="admin_system_messages" resource="default" engine="innodb" comment="Admin System Messages">
  38. <column xsi:type="varchar" name="identity" nullable="false" length="100" comment="Message id"/>
  39. <column xsi:type="smallint" name="severity" padding="5" unsigned="true" nullable="false" identity="false"
  40. default="0" comment="Problem type"/>
  41. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  42. comment="Create date"/>
  43. <constraint xsi:type="primary" referenceId="PRIMARY">
  44. <column name="identity"/>
  45. </constraint>
  46. </table>
  47. </schema>