<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="Infigo_Insights" schema="reporting" type="PostgreSQL - 16.13">
   <tables>
      <table name="address" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.address_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="address_id" foreignKey="fk_address_book_address_mapping_address_id_address_id" implied="false" onDeleteCascade="true" schema="reporting" table="address_book_address_mapping"/>
            <child column="billing_address_id" foreignKey="fk_customer_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
            <child column="shipping_address_id" foreignKey="fk_customer_shipping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
            <child column="address_id" foreignKey="fk_customer_address_mapping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer_address_mapping"/>
            <child column="billing_address_id" foreignKey="fk_department_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="department"/>
            <child column="billing_address_id" foreignKey="fk_order_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
            <child column="shipping_address_id" foreignKey="fk_order_shipping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="first_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="last_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="company" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="country" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="country_iso_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="state" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="state_abbreviation" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="city" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="address_1" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="address_2" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="zip_postal_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="phone_number" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="fax_number" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="address_book" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.address_book_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="address_book_id" foreignKey="fk_address_book_address_mapping_address_book_id_address_book_id" implied="false" onDeleteCascade="false" schema="reporting" table="address_book_address_mapping"/>
            <child column="address_book_id" foreignKey="fk_address_book_department_mapping_address_book_id_address_book" implied="false" onDeleteCascade="false" schema="reporting" table="address_book_department_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="validate_records" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="available_for_everyone" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="uid" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_book_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="address_book_address_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.address_book_address_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="address_book_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_book_address_mapping_address_book_id_address_book_id" implied="false" onDeleteCascade="false" schema="reporting" table="address_book"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="address_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_book_address_mapping_address_id_address_id" implied="false" onDeleteCascade="true" schema="reporting" table="address"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="address_book_department_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.address_book_department_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="address_book_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_book_department_mapping_address_book_id_address_book" implied="false" onDeleteCascade="false" schema="reporting" table="address_book"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="department_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_address_book_department_mapping_department_id_department_id" implied="false" onDeleteCascade="true" schema="reporting" table="department"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="attribute_attributecombination_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.attribute_attributecombination_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_acm_attribute_name_id_attribute_name_id" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_acm_attribute_value_id_attribute_value_id" implied="false" onDeleteCascade="false" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_combination_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_acm_attribute_combination_id_attribute_combination_id" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_combination"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="attribute_combination" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.attribute_combination_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="attribute_combination_id" foreignKey="fk_acm_attribute_combination_id_attribute_combination_id" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_attributecombination_mapping"/>
            <child column="attribute_combination_id" foreignKey="fk_orderline_attribute_combination_id_attribute_combination_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="priority" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="sku" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="stock_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="allow_out_of_stock_orders" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_attribute_combination_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="uid" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="order_minimum_quantity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="order_maximum_quantity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="attribute_name" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.attribute_name_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="attribute_name_id" foreignKey="fk_acm_attribute_name_id_attribute_name_id" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_attributecombination_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_customer_attributes_mapping_attribute_name_id_attribute_name" implied="false" onDeleteCascade="true" schema="reporting" table="customer_attributes_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_order_checkout_attribute_mapping_attribute_name_id_attribute" implied="false" onDeleteCascade="true" schema="reporting" table="order_checkout_attribute_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_orderline_attribute_mapping_attribute_name_id_attribute_name" implied="false" onDeleteCascade="true" schema="reporting" table="orderline_attribute_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_product_attribute_mapping_attribute_name_id_attribute_name_i" implied="false" onDeleteCascade="true" schema="reporting" table="product_attribute_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_product_specification_attribute_mapping_attribute_name_id_at" implied="false" onDeleteCascade="true" schema="reporting" table="product_specification_attribute_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_quote_attribute_mapping_attribute_name_id_attribute_name_id" implied="false" onDeleteCascade="true" schema="reporting" table="quote_attribute_mapping"/>
            <child column="attribute_name_id" foreignKey="fk_shopping_cart_item_attribute_mapping_attribute_name_id_attri" implied="false" onDeleteCascade="true" schema="reporting" table="shopping_cart_item_attribute_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="attribute_value" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.attribute_value_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="attribute_value_id" foreignKey="fk_acm_attribute_value_id_attribute_value_id" implied="false" onDeleteCascade="false" schema="reporting" table="attribute_attributecombination_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_customer_attributes_mapping_attribute_value_id_attribute_val" implied="false" onDeleteCascade="false" schema="reporting" table="customer_attributes_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_order_checkout_attribute_mapping_attribute_value_id_attribut" implied="false" onDeleteCascade="true" schema="reporting" table="order_checkout_attribute_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_orderline_attribute_mapping_attribute_value_id_attribute_val" implied="false" onDeleteCascade="true" schema="reporting" table="orderline_attribute_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_product_attribute_mapping_attribute_value_id_attribute_value" implied="false" onDeleteCascade="true" schema="reporting" table="product_attribute_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_product_specification_attribute_mapping_attribute_value_id_a" implied="false" onDeleteCascade="true" schema="reporting" table="product_specification_attribute_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_quote_attribute_mapping_attribute_value_id_attribute_value_i" implied="false" onDeleteCascade="true" schema="reporting" table="quote_attribute_mapping"/>
            <child column="attribute_value_id" foreignKey="fk_shopping_cart_item_attribute_mapping_attribute_value_id_attr" implied="false" onDeleteCascade="true" schema="reporting" table="shopping_cart_item_attribute_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="budget" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.budget_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="budget_id" foreignKey="fk_budget_usage_history_budget_id_budget_id" implied="false" onDeleteCascade="true" schema="reporting" table="budget_usage_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_budget_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_budget_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="expiry_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="origin" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="6" name="amount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="budget_usage_history" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.budget_usage_history_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="budget_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_budget_usage_history_budget_id_budget_id" implied="false" onDeleteCascade="true" schema="reporting" table="budget"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="used_with_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_budget_usage_history_used_with_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="3" name="used_value" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="category" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.category_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="parent_category_id" foreignKey="fk_category_parent_category_id_category_id" implied="false" onDeleteCascade="false" schema="reporting" table="category"/>
            <child column="category_id" foreignKey="fk_product_category_mapping_category_id_category_id" implied="false" onDeleteCascade="true" schema="reporting" table="product_category_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="short_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="parent_category_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_category_parent_category_id_category_id" implied="false" onDeleteCascade="false" schema="reporting" table="category"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_category_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="chameleon_group" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.chameleon_group_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="chameleon_group_id" foreignKey="fk_order_chameleon_group_id_chameleon_group_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="uid" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="customer_id" foreignKey="fk_budget_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="budget"/>
            <child column="customer_id" foreignKey="fk_customer_address_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer_address_mapping"/>
            <child column="customer_id" foreignKey="fk_customer_attributes_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer_attributes_mapping"/>
            <child column="customer_id" foreignKey="fk_customer_customer_role_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer_customer_role_mapping"/>
            <child column="customer_id" foreignKey="fk_customer_login_history_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer_login_history"/>
            <child column="customer_child_id" foreignKey="fk_customer_relationship_mapping_customer_child_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer_relationship_mapping"/>
            <child column="customer_master_id" foreignKey="fk_customer_relationship_mapping_customer_master_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer_relationship_mapping"/>
            <child column="customer_id" foreignKey="fk_order_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
            <child column="impersonating_customer_id" foreignKey="fk_order_impersonating_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
            <child column="customer_id" foreignKey="fk_orderline_approver_history_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline_approver_history"/>
            <child column="customer_id" foreignKey="fk_payment_transaction_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="payment_transaction"/>
            <child column="customer_id" foreignKey="fk_product_download_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="product_download"/>
            <child column="created_by_customer_id" foreignKey="fk_quote_created_by_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
            <child column="customer_id" foreignKey="fk_quote_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
            <child column="customer_id" foreignKey="fk_reward_points_history_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="reward_points_history"/>
            <child column="customer_id" foreignKey="fk_shopping_cart_item_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="shopping_cart_item"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="first_name" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="last_name" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="email" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="username" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="vat_number" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="company" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="gender" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="custom_field_1" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="custom_field_2" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="custom_field_3" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="custom_checkbox" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="phone" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="zip_postal_code" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="billing_address_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="shipping_address_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_shipping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="department_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_department_id_department_id" implied="false" onDeleteCascade="false" schema="reporting" table="department"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="date_of_birth" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="date_of_registration" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="is_tax_exempt" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="admin_comment" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="address_1" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="address_2" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="city" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="country" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="country_iso_code" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="state" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="state_abbreviation" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="fax_number" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_address_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_address_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_address_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="address_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_address_mapping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_attributes_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_attributes_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_attributes_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_attributes_mapping_attribute_name_id_attribute_name" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_value_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_attributes_mapping_attribute_value_id_attribute_val" implied="false" onDeleteCascade="false" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_customer_role_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_customer_role_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_customer_role_mapping_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="role_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_customer_role_mapping_role_id_customer_role_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer_role"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_login_history" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_login_history_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_login_history_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="login_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="logout_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ip_address" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_relationship_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_relationship_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="relation_type" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="customer_child_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_relationship_mapping_customer_child_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="customer_master_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_customer_relationship_mapping_customer_master_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="customer_role" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.customer_role_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="role_id" foreignKey="fk_customer_customer_role_mapping_role_id_customer_role_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer_customer_role_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="system_name" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="free_shipping" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="uid" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="delivery_method" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.delivery_method_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="delivery_method_id" foreignKey="fk_order_delivery_method_id_delivery_method_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="800" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="display_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="uid" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="department" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.department_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="department_id" foreignKey="fk_address_book_department_mapping_department_id_department_id" implied="false" onDeleteCascade="true" schema="reporting" table="address_book_department_mapping"/>
            <child column="department_id" foreignKey="fk_customer_department_id_department_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
            <child column="department_id" foreignKey="fk_department_payment_method_mapping_department_id_department_i" implied="false" onDeleteCascade="true" schema="reporting" table="department_payment_method_mapping"/>
            <child column="department_id" foreignKey="fk_department_shipping_method_mapping_department_id_department_" implied="false" onDeleteCascade="true" schema="reporting" table="department_shipping_method_mapping"/>
            <child column="department_id" foreignKey="fk_order_department_id_department_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="cost_centre" nullable="true" remarks="" size="400" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_department_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="pl_code" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="use_department_address_exclusively" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="login_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="billing_address_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_department_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="department_payment_method_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.department_payment_method_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="department_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_department_payment_method_mapping_department_id_department_i" implied="false" onDeleteCascade="true" schema="reporting" table="department"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="payment_method_system_name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="department_shipping_method_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.department_shipping_method_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="department_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_department_shipping_method_mapping_department_id_department_" implied="false" onDeleteCascade="true" schema="reporting" table="department"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="shipping_method_system_name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="shipping_method_name" nullable="true" remarks="" size="400" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="shipping_method_code" nullable="true" remarks="" size="400" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="mis_plugin" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.mis_plugin_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="mis_plugin_id" foreignKey="fk_mis_plugin_mapping_mis_plugin_id_mis_plugin_id" implied="false" onDeleteCascade="false" schema="reporting" table="mis_plugin_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_mis_plugin_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="mis_plugin_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.mis_plugin_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="mis_plugin_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_mis_plugin_mapping_mis_plugin_id_mis_plugin_id" implied="false" onDeleteCascade="false" schema="reporting" table="mis_plugin"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="uid" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="additional_value" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="num_values" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.num_values_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="number" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="order" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.order_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="used_with_order_id" foreignKey="fk_budget_usage_history_used_with_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="budget_usage_history"/>
            <child column="order_id" foreignKey="fk_order_checkout_attribute_mapping_order_id_order_id" implied="false" onDeleteCascade="true" schema="reporting" table="order_checkout_attribute_mapping"/>
            <child column="order_id" foreignKey="fk_orderline_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline"/>
            <child column="order_id" foreignKey="fk_payment_transaction_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="payment_transaction"/>
            <child column="used_with_order_id" foreignKey="fk_reward_points_history_used_with_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="reward_points_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="shipping_method" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="shipping_method_code" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="customer_currency_code" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="payment_method" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="tax_rates" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="checkout_attributes_info" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="payment_status" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="shipping_status" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="status" nullable="true" remarks="" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="purchase_order_number" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="tracking_number" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="discount_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_discount_id_order_discount_id" implied="false" onDeleteCascade="false" schema="reporting" table="order_discount"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="impersonating_customer_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_impersonating_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="billing_address_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_billing_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="shipping_address_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_shipping_address_id_address_id" implied="false" onDeleteCascade="false" schema="reporting" table="address"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="total" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="discount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="subtotal_incl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="21" name="sub_total_discount_incl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="22" name="shipping_incl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="23" name="shipping_excl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="24" name="order_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="25" name="tax_rate" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="shipped_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="28" name="deliver_by" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="dispatch_by" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="order_guid" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="31" name="weight" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="32" name="currency_rate" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="33" name="paid_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="department_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_department_id_department_id" implied="false" onDeleteCascade="false" schema="reporting" table="department"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="delivery_method_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_delivery_method_id_delivery_method_id" implied="false" onDeleteCascade="false" schema="reporting" table="delivery_method"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="payment_transaction_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="40" name="refund_amount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="chameleon_group_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_chameleon_group_id_chameleon_group_id" implied="false" onDeleteCascade="false" schema="reporting" table="chameleon_group"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="4" id="42" name="order_processing_fee_tax" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="43" name="order_line_handling_fee_tax" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="44" name="product_handling_fee_tax" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="custom_tag_1" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="custom_tag_2" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="custom_tag_3" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="custom_tag_4" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="custom_data_1" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="cost_code" nullable="true" remarks="" size="400" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="order_checkout_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.order_checkout_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_checkout_attribute_mapping_attribute_name_id_attribute" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_checkout_attribute_mapping_attribute_value_id_attribut" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="order_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_checkout_attribute_mapping_order_id_order_id" implied="false" onDeleteCascade="true" schema="reporting" table="order"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="order_discount" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.order_discount_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="discount_id" foreignKey="fk_order_discount_id_order_discount_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="coupon_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_order_discount_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="4" id="4" name="amount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="percentage" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="use_percentage" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="orderline" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.orderline_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="orderline_id" foreignKey="fk_orderline_approver_history_orderline_id_orderline_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline_approver_history"/>
            <child column="orderline_id" foreignKey="fk_orderline_attribute_mapping_orderline_id_orderline_id" implied="false" onDeleteCascade="true" schema="reporting" table="orderline_attribute_mapping"/>
            <child column="orderline_id" foreignKey="fk_orderline_status_history_orderline_id_orderline_id" implied="false" onDeleteCascade="true" schema="reporting" table="orderline_status_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attributes_info" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="false" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="order_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="delivery_type" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="job_reference" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="record_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="page_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="weight" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="ordered_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="unit_price_excl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="unit_price_incl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="price_incl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="15" name="price_excl_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="17" name="sales_tax" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="18" name="tier_price_part_1" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="19" name="tier_price_part_2" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="20" name="tier_price_part_3" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="21" name="tier_price_part_4" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="sku" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="custom_job_name" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="attribute_combination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_attribute_combination_id_attribute_combination_id" implied="false" onDeleteCascade="false" schema="reporting" table="attribute_combination"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="download_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="quote_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="30" name="display_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="31" name="shipped_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="32" name="discount_amount_incl_tax" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="33" name="discount_amount_excl_tax" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="34" name="is_download_activated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="attribute_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="admin_attribute_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="custom_tag_1" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="custom_tag_2" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="custom_tag_3" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="custom_tag_4" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="custom_data_1" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="custom_data_2" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="orderline_approver_history" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.orderline_approver_history_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_approver_history_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="orderline_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_approver_history_orderline_id_orderline_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="time_stamp" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="orderline_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.orderline_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_attribute_mapping_attribute_name_id_attribute_name" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_attribute_mapping_attribute_value_id_attribute_val" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="orderline_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_attribute_mapping_orderline_id_orderline_id" implied="false" onDeleteCascade="true" schema="reporting" table="orderline"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="orderline_status_history" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.orderline_status_history_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="info" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="orderline_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_orderline_status_history_orderline_id_orderline_id" implied="false" onDeleteCascade="true" schema="reporting" table="orderline"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="timestamp" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="payment_transaction" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.payment_transaction_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_payment_transaction_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="customer_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_payment_transaction_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="transaction_id" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="payment_method_system_name" nullable="false" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="authorization_request_id" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="capture_request_id" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="amount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="8" name="tax_amount" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_code" nullable="true" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="uid" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_payment_transaction_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="authorization_expiration_date_utc" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="transaction_date_utc" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="product" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.product_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="product_id" foreignKey="fk_attribute_combination_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="attribute_combination"/>
            <child column="product_id" foreignKey="fk_orderline_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline"/>
            <child column="product_id" foreignKey="fk_product_attribute_mapping_product_id_product_id" implied="false" onDeleteCascade="true" schema="reporting" table="product_attribute_mapping"/>
            <child column="product_id" foreignKey="fk_product_category_mapping_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product_category_mapping"/>
            <child column="product_id" foreignKey="fk_product_download_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product_download"/>
            <child column="product_id" foreignKey="fk_product_specification_attribute_mapping_product_id_product_i" implied="false" onDeleteCascade="true" schema="reporting" table="product_specification_attribute_mapping"/>
            <child column="product_id" foreignKey="fk_quote_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
            <child column="product_id" foreignKey="fk_shopping_cart_item_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="shopping_cart_item"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_group_name" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="short_description" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="sku" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="stock_quantity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="9" name="weight" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="length" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="width" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="12" name="height" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="13" name="price" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="14" name="cost" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="pack_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="manage_inventory_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="21" name="show_on_home_page" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="22" name="show_product_in_search" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="23" name="request_price_on_landing_page" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="24" name="disable_buy_button" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="25" name="requires_quote" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="26" name="old_price" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="27" name="special_price" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="special_price_start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="special_price_end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="30" name="call_for_price" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="31" name="product_cost" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="'Per Unit'::character varying" digits="0" id="32" name="additional_shipping_charge_type" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="33" name="additional_shipping_charge" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="34" name="is_ship_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="35" name="is_free_shipping" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="36" name="is_tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="37" name="is_download" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="38" name="download_and_print" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'Nothing'::character varying" digits="0" id="39" name="low_stock_activity_mode" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="40" name="display_stock_availability" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="41" name="display_stock_quantity" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="42" name="min_stock_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'No Backorders'::character varying" digits="0" id="43" name="backorder_mode" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="44" name="notify_admin_for_quantity_below" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="45" name="allow_back_in_stock_subscriptions" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="46" name="order_minimum_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="10000" digits="0" id="47" name="order_maximum_quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="48" name="order_processing_fee" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="'Absolute'::character varying" digits="0" id="49" name="order_processing_fee_type" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="50" name="order_line_handling_fee" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="4" id="51" name="product_handling_fee" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="product_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.product_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_attribute_mapping_product_id_product_id" implied="false" onDeleteCascade="true" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_attribute_mapping_attribute_name_id_attribute_name_i" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_value_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_attribute_mapping_attribute_value_id_attribute_value" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="source_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name_uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="value_uid" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="product_category_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.product_category_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="category_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_category_mapping_category_id_category_id" implied="false" onDeleteCascade="true" schema="reporting" table="category"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_category_mapping_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="product_download" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.product_download_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_download_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="customer_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_download_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_ip" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="download_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="download_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="product_specification_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.product_specification_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_specification_attribute_mapping_attribute_name_id_at" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_specification_attribute_mapping_attribute_value_id_a" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_product_specification_attribute_mapping_product_id_product_i" implied="false" onDeleteCascade="true" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="quote" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.quote_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="quote_id" foreignKey="fk_orderline_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="orderline"/>
            <child column="parent_quote_id" foreignKey="fk_quote_parent_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
            <child column="quote_id" foreignKey="fk_quote_attribute_mapping_quote_id_quote_id" implied="false" onDeleteCascade="true" schema="reporting" table="quote_attribute_mapping"/>
            <child column="quote_id" foreignKey="fk_shopping_cart_item_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="shopping_cart_item"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'Active'::character varying" digits="0" id="2" name="status" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'None'::character varying" digits="0" id="3" name="markup_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'Infinite'::character varying" digits="0" id="4" name="usage_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="parent_quote_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_parent_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by_customer_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_created_by_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="price" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="markup_amount" nullable="true" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="custom_reference" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="info_text" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="life_span_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="custom_tag" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="hide_from_customer" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="17" name="max_usage_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="uid" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="updated_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="quote_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.quote_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_attribute_mapping_attribute_name_id_attribute_name_id" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_attribute_mapping_attribute_value_id_attribute_value_i" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="quote_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_quote_attribute_mapping_quote_id_quote_id" implied="false" onDeleteCascade="true" schema="reporting" table="quote"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="reward_points_history" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.reward_points_history_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_reward_points_history_customer_id_customer_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="used_with_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_reward_points_history_used_with_order_id_order_id" implied="false" onDeleteCascade="false" schema="reporting" table="order"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="points_adjustment" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="balance" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="5" name="used_amount" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="creation_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="audit_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="shopping_cart_item" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.shopping_cart_item_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="shopping_cart_item_id" foreignKey="fk_shopping_cart_item_attribute_mapping_shopping_cart_item_id_s" implied="false" onDeleteCascade="true" schema="reporting" table="shopping_cart_item_attribute_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_name" nullable="true" remarks="" size="600" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="shopping_cart_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="delivery_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="customer_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_customer_id_customer_id" implied="false" onDeleteCascade="false" schema="reporting" table="customer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_product_id_product_id" implied="false" onDeleteCascade="false" schema="reporting" table="product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="quantity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="7" name="unit_price" nullable="false" remarks="" size="18" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="uid" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="storefront_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="storefront"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="quote_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_quote_id_quote_id" implied="false" onDeleteCascade="false" schema="reporting" table="quote"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="16" name="display_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="shopping_cart_item_attribute_mapping" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.shopping_cart_item_attribute_mapping_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attribute_name_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_attribute_mapping_attribute_name_id_attri" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_name"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_value_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_attribute_mapping_attribute_value_id_attr" implied="false" onDeleteCascade="true" schema="reporting" table="attribute_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="shopping_cart_item_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_shopping_cart_item_attribute_mapping_shopping_cart_item_id_s" implied="false" onDeleteCascade="true" schema="reporting" table="shopping_cart_item"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
      <table name="storefront" remarks="" schema="reporting" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('reporting.storefront_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="storefront_id" foreignKey="fk_address_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="address"/>
            <child column="storefront_id" foreignKey="fk_address_book_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="address_book"/>
            <child column="storefront_id" foreignKey="fk_budget_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="budget"/>
            <child column="storefront_id" foreignKey="fk_category_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="category"/>
            <child column="storefront_id" foreignKey="fk_customer_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="customer"/>
            <child column="storefront_id" foreignKey="fk_department_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="department"/>
            <child column="storefront_id" foreignKey="fk_mis_plugin_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="mis_plugin"/>
            <child column="storefront_id" foreignKey="fk_order_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="order"/>
            <child column="storefront_id" foreignKey="fk_order_discount_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="order_discount"/>
            <child column="storefront_id" foreignKey="fk_orderline_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="orderline"/>
            <child column="storefront_id" foreignKey="fk_payment_transaction_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="payment_transaction"/>
            <child column="storefront_id" foreignKey="fk_product_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="product"/>
            <child column="storefront_id" foreignKey="fk_quote_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="quote"/>
            <child column="storefront_id" foreignKey="fk_shopping_cart_item_storefront_id_storefront_id" implied="false" onDeleteCascade="true" schema="reporting" table="shopping_cart_item"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="url" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="external_ref" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="currency_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="weight_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="dimension_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="language_culture" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="date_format" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
      </table>
   </tables>
</database>
