Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | serial | 10 | √ | nextval('Insights.order_id_seq'::regclass) |
|
|
||||||||||||||
shipping_method | varchar | 200 | √ | null |
|
|
||||||||||||||
shipping_method_code | varchar | 200 | √ | null |
|
|
||||||||||||||
customer_currency_code | varchar | 100 | √ | null |
|
|
||||||||||||||
payment_method | varchar | 200 | √ | null |
|
|
||||||||||||||
tax_rates | varchar | 100 | √ | null |
|
|
||||||||||||||
checkout_attributes_info | text | 2147483647 | √ | null |
|
|
||||||||||||||
payment_status | varchar | 100 | √ | null |
|
|
||||||||||||||
shipping_status | varchar | 100 | √ | null |
|
|
||||||||||||||
status | varchar | 100 | √ | null |
|
|
||||||||||||||
purchase_order_number | varchar | 2000 | √ | null |
|
|
||||||||||||||
tracking_number | varchar | 2000 | √ | null |
|
|
||||||||||||||
discount_id | int4 | 10 | √ | null |
|
|
||||||||||||||
customer_id | int4 | 10 | null |
|
|
|||||||||||||||
impersonating_customer_id | int4 | 10 | √ | null |
|
|
||||||||||||||
billing_address_id | int4 | 10 | null |
|
|
|||||||||||||||
shipping_address_id | int4 | 10 | √ | null |
|
|
||||||||||||||
storefront_id | int4 | 10 | null |
|
|
|||||||||||||||
total | numeric | 18,4 | null |
|
|
|||||||||||||||
discount | numeric | 18,4 | null |
|
|
|||||||||||||||
subtotal_incl_tax | numeric | 18,4 | null |
|
|
|||||||||||||||
sub_total_discount_incl_tax | numeric | 18,4 | null |
|
|
|||||||||||||||
shipping_incl_tax | numeric | 18,4 | null |
|
|
|||||||||||||||
shipping_excl_tax | numeric | 18,4 | null |
|
|
|||||||||||||||
order_tax | numeric | 18,4 | null |
|
|
|||||||||||||||
tax_rate | numeric | 18,4 | null |
|
|
|||||||||||||||
created_date | timestamp | 29,6 | null |
|
|
|||||||||||||||
shipped_date | timestamp | 29,6 | √ | null |
|
|
||||||||||||||
deliver_by | timestamp | 29,6 | √ | null |
|
|
||||||||||||||
dispatch_by | timestamp | 29,6 | √ | null |
|
|
||||||||||||||
order_guid | uuid | 2147483647 | null |
|
|
|||||||||||||||
weight | numeric | 18,4 | null |
|
|
|||||||||||||||
currency_rate | numeric | 18,4 | null |
|
|
|||||||||||||||
paid_date | timestamp | 29,6 | √ | null |
|
|
||||||||||||||
external_ref | uuid | 2147483647 | null |
|
|
|||||||||||||||
source_id | int4 | 10 | null |
|
|
|||||||||||||||
department_id | int4 | 10 | √ | null |
|
|
||||||||||||||
uid | varchar | 200 | √ | null |
|
|
||||||||||||||
delivery_method_id | int4 | 10 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PK_order | Primary key | Asc | id |
ixInsights_order_created_date_storefront_total | Performance | Asc/Asc/Asc/Asc/Asc/Asc | status + created_date + storefront_id + total + shipping_excl_tax + order_tax |
ixInsights_order_shipping_status | Performance | Asc/Asc | status + shipping_status |
ixInsights_order_status | Performance | Asc | status |
ixInsights_order_uid | Performance | Asc | uid |
ixorder_billing_address_id | Performance | Asc | billing_address_id |
ixorder_customer_id | Performance | Asc | customer_id |
ixorder_discount_id | Performance | Asc | discount_id |
ixorder_impersonating_customer_id | Performance | Asc | impersonating_customer_id |
ixorder_shipping_address_id | Performance | Asc | shipping_address_id |
ixorder_storefront_id | Performance | Asc | storefront_id |