sm_customer_key | STRING | Stable SourceMedium customer key. Unique per customer. Key joins: dim_customers (1:1); dim_orders/obt_orders (1:many). Platform caveat: TikTok Shop coverage may be limited. |
sm_order_key | STRING | Stable SourceMedium order key. Unique per order. Key joins: obt_order_lines (1:many via sm_order_key); dim_customers (many:1 via sm_customer_key). Platform caveat: TikTok Shop coverage may be limited. |
sm_order_line_key | STRING | Stable SourceMedium order line key. Unique per line. Key joins: dim_order_lines (1:1); dim_orders (many:1 via sm_order_key). Platform caveat: TikTok Shop coverage may be limited. |
sm_product_key | STRING | Stable SourceMedium join key for products to related tables. |
sm_product_variant_key | STRING | Stable SourceMedium join key for product variants to related tables. |
sm_store_id | STRING | SourceMedium’s unique store identifier. For Shopify stores, derived from the myshopify.com domain; for other platforms (Amazon, TikTok Shop, Walmart.com), uses platform-specific identifiers. |
order_created_at_local_datetime | DATETIME | Order created timestamp converted to reporting timezone (from order_created_at UTC). |
order_id | STRING | Platform order identifier. Not globally unique across stores; pair with sm_store_id and source_system when needed for scoping. |
order_line_gross_sales | FLOAT64 | The number of items in an order multiplied by the price of those items. |
order_line_id | STRING | The ID of the order line. |
order_line_price | FLOAT64 | The price of the items purchased in an order. |
order_line_quantity | NUMERIC | The number of items that were originally purchased in an order. |
product_variant_id | STRING | A unique identifier for the product variant generated by the source system. |
source_system | STRING | Originating platform for the record (e.g., Shopify, Amazon, TikTok Shop, Chargebee). Used for platform‑specific behavior and coverage. |