|
| 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:setup:Model/Declaration/Schema/etc/schema.xsd"> |
| 10 | + <table name="signifyd_case" resource="default" 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" name="PRIMARY"> |
| 28 | + <column name="entity_id"/> |
| 29 | + </constraint> |
| 30 | + <constraint xsi:type="foreign" name="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" name="SIGNIFYD_CASE_ORDER_ID"> |
| 33 | + <column name="order_id"/> |
| 34 | + </constraint> |
| 35 | + <constraint xsi:type="unique" name="SIGNIFYD_CASE_CASE_ID"> |
| 36 | + <column name="case_id"/> |
| 37 | + </constraint> |
| 38 | + </table> |
| 39 | + <table name="sales_order_grid" resource="default" comment="Sales Flat Order Grid"> |
| 40 | + <column xsi:type="varchar" name="signifyd_guarantee_status" nullable="true" length="32"/> |
| 41 | + </table> |
| 42 | +</schema> |
0 commit comments