db_schema.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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="signifyd_case" resource="sales" engine="innodb" comment="signifyd_case">
  11. <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Entity_id"/>
  13. <column xsi:type="int" name="order_id" padding="10" unsigned="true" nullable="true" identity="false"
  14. comment="Order_id"/>
  15. <column xsi:type="int" name="case_id" padding="10" unsigned="true" nullable="true" identity="false"
  16. comment="Case_id"/>
  17. <column xsi:type="boolean" name="guarantee_eligible" nullable="true" comment="Guarantee_eligible"/>
  18. <column xsi:type="varchar" name="guarantee_disposition" nullable="true" length="32" default="PENDING"
  19. comment="Guarantee_disposition"/>
  20. <column xsi:type="varchar" name="status" nullable="true" length="32" default="PENDING" comment="Status"/>
  21. <column xsi:type="int" name="score" padding="10" unsigned="true" nullable="true" identity="false"
  22. comment="Score"/>
  23. <column xsi:type="text" name="associated_team" nullable="true" comment="Associated_team"/>
  24. <column xsi:type="varchar" name="review_disposition" nullable="true" length="32" comment="Review_disposition"/>
  25. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="true" comment="Created_at"/>
  26. <column xsi:type="timestamp" name="updated_at" on_update="false" nullable="true" comment="Updated_at"/>
  27. <constraint xsi:type="primary" referenceId="PRIMARY">
  28. <column name="entity_id"/>
  29. </constraint>
  30. <constraint xsi:type="foreign" referenceId="SIGNIFYD_CASE_ORDER_ID_SALES_ORDER_ENTITY_ID" table="signifyd_case"
  31. column="order_id" referenceTable="sales_order" referenceColumn="entity_id" onDelete="SET NULL"/>
  32. <constraint xsi:type="unique" referenceId="SIGNIFYD_CASE_ORDER_ID">
  33. <column name="order_id"/>
  34. </constraint>
  35. <constraint xsi:type="unique" referenceId="SIGNIFYD_CASE_CASE_ID">
  36. <column name="case_id"/>
  37. </constraint>
  38. </table>
  39. <table name="sales_order_grid" resource="sales" comment="Sales Flat Order Grid">
  40. <column xsi:type="varchar" name="signifyd_guarantee_status" nullable="true" length="32"
  41. comment="Signifyd Guarantee Disposition Status"/>
  42. </table>
  43. </schema>