ccdw_fact_order_payments

This table records payment transactions for orders. Each row represents an order payment.

Column AliasData TypeKeyDescriptionIndex?
order_payment_idBIGINTPKUnique identifier for the order payment record.Yes
norder_idVARCHAR(50)The natural key representing the order in the source system.Yes
utc_submit_timestampTIMESTAMPUTC timestamp when the payment was submitted.No
utc_submit_day_idSMALLINTFKForeign key to ccdw_dim_date for the UTC submission day.No
utc_submit_time_idSMALLINTFKForeign key to ccdw_dim_time for the UTC submission time.No
utc_update_timestampTIMESTAMPLast modified UTC timestamp of this record.Yes
std_submit_timestampTIMESTAMPTimestamp when the payment was submitted, in standard time.No
std_submit_day_idSMALLINTFKForeign key to ccdw_dim_date for the standard submission day.Yes
std_submit_time_idSMALLINTFKForeign key to ccdw_dim_time for the standard submission time.No
std_timezone_idSMALLINTFKForeign key to ccdw_dim_timezone for the standard time zone.No
locale_idSMALLINTFKForeign key to ccdw_dim_locale.Yes
site_idSMALLINTFKForeign key to ccdw_dim_site for the submission site.Yes
business_channel_idSMALLINTFKForeign key to ccdw_dim_business_channel.Yes
user_agent_idINTEGERFKForeign key to ccdw_dim_user_agent.Yes
source_code_group_idINTEGERFKForeign key to ccdw_dim_source_code_group.No
payment_method_idSMALLINTFKForeign key to ccdw_dim_payment_method.Yes
visitor_idVARCHAR(100)Unique key representing an ID of the visitor.No
customer_idBIGINTFKForeign key to ccdw_dim_customer.Yes
lcl_currency_idSMALLINTFKForeign key to ccdw_dim_currency for local currency.No
std_currency_idSMALLINTFKForeign key to ccdw_dim_currency for standard currency.No
shipping_geography_idINTEGERFKForeign key to ccdw_dim_geography for shipping location.No
invoice_geography_idINTEGERFKForeign key to ccdw_dim_geography for invoice location.No
customer_geography_idINTEGERFKForeign key to ccdw_dim_geography for customer's address.No
lcl_captured_amountNUMERICCaptured amount in local currency.No
lcl_refunded_amountNUMERICRefunded amount in local currency.No
lcl_transaction_amountNUMERICTransaction amount in local currency.No
std_captured_amountNUMERICCaptured amount in standard currency.No
std_refunded_amountNUMERICRefunded amount in standard currency.No
std_transaction_amountNUMERICTransaction amount in standard currency.No