Spensara Spensara Knowledge Base & Documentation Repository

Repository Docs & Knowledge Base

Consolidated Spensara documentation repository (722 Markdown & architecture documents in ../repository)
Built Word Documents (.docx): Spensara Overview (.docx) Capability Assessment (.docx) Brink POS Ingestion Analysis (.docx) The Borg Ingestion Architecture (.docx)

Warehouse Model (93)

Analytical data warehouse schemas, curated tables, and Redshift/Athena data models.
warehouse-model/docs/features/ETL/warehouse-data/brinkPos-curated-model-mapps/kitchen_orders.md 6,759 bytes · Updated Oct 23, 2026 10:44 AM EDT
Raw File

Brink mapping for curated.kitchen_orders

Main staging sources

  • staging.brink_sales2_orders
  • staging.brink_kitchen_get_order_bump_times
  • staging.brink_settings2_get_destinations

Mapping groups

  • Business property mappings describe how Brink order content is mapped or could be mapped into curated business fields.
  • Technical and ETL property mappings describe lineage, source reconciliation, tenant scoping, and ingestion metadata.

Business property mappings

Curated ColumnBrink Staging TableBrink Property PathCurrent mappingStatusNotes
guidstaging.brink_sales2_ordersid_encodedNULLNot mappedDirect Brink order identifier.
store_guidN/AN/ANULLNot mappedThe documented Brink staging model does not expose a store GUID on orders.
destinationstaging.brink_settings2_get_destinationsnameNULLNot mappedJoin on destination_id.
is_priorityN/AN/ANULLNot mappedNo documented Brink order priority flag exists.
items_countstaging.brink_sales2_ordersorder_countNULLNot mappedBrink already exposes a header count field; order_entries counts can be used as secondary validation.
order_typestaging.brink_settings2_get_destinationsnameNULLNot mappedDestination is the nearest documented service-channel field.
pos_terminalstaging.brink_sales2_ordersterminal_idNULLNot mappedDirect terminal ID.
preparation_timestaging.brink_kitchen_get_order_bump_times(first_send_time, bump_time)NULLNot mappedDerived kitchen duration from first send to bump.
donestaging.brink_sales2_ordersis_closedNULLNot mappedDirect completion flag.
create_timestaging.brink_sales2_ordersopened_timeNULLNot mappedBest available order-create/open timestamp.
is_deletedN/AN/ANULLNot mappedBrink order staging does not expose a soft-delete flag.
external_idstaging.brink_sales2_ordersid_encodedNULLNot mappedBest available external string identifier.
guest_tableN/AN/ANULLNot mappedNo table label is documented on the Brink order payload.
update_timestaging.brink_sales2_ordersmodified_timeNULLNot mappedDirect last-modified timestamp.
phoneN/AN/ANULLNot mappedNo customer phone field is documented on the order payload.
create_local_timeN/AN/ANULLNot mappedBrink exposes UTC timestamps, not local integer time mirrors.
customer_guidstaging.brink_sales2_orderscustomer_idNULLNot mappedDirect customer GUID reference when present.
smart_order_start_timestaging.brink_sales2_orderspickup_timeNULLNot mappedBest available scheduled/future-order start proxy.
order_messagesstaging.brink_sales2_ordersorder_additional_detailsNULLNot mappedBest available order-level message/details field.
customer_nameN/AN/ANULLNot mappedNo customer-name field is documented on the order payload.
seatN/AN/ANULLNot mappedNo seat number field is documented on the Brink order payload.
order_statusN/AN/ANULLNot mappedBrink exposes status via booleans such as is_closed, is_future_order, and is_refund, not one numeric status code.
store_nameN/AN/ANULLNot mappedNo store name is documented in the Brink order payloads covered here.
pos_terminal_namestaging.brink_settings_get_registersnameNULLNot mappedResolve terminal name by joining staging.brink_sales2_orders on terminal_id to staging.brink_settings_get_registers on register_id.
order_status_namestaging.brink_sales2_orders(is_closed, is_future_order, is_refund)NULLNot mappedDerived readable status from the available order booleans.
service_channelstaging.brink_settings2_get_destinationsnameNULLNot mappedJoin on destination_id.
business_datestaging.brink_sales2_ordersbusiness_dateNULLNot mappedDirect business date.
create_time_utcstaging.brink_sales2_ordersopened_timeNULLNot mappedDirect UTC timestamp.
timezone_nameN/AN/ANULLNot mappedThe documented Brink staging model does not expose timezone metadata.

Technical and ETL property mappings

Curated ColumnBrink Staging TableBrink Property PathCurrent mappingStatusNotes
kitchen_order_keyN/AN/ANULLNot mappedWarehouse-generated key.
source_systemN/AN/Aconstant 'brink_pos'Derived constantWarehouse constant, not a Brink API field.
source_order_idstaging.brink_sales2_ordersorder_idNULLNot mappedDirect Brink source ID.
tenant_keyN/AN/ANULLNot mappedWarehouse-generated tenant key.
tenant_nameN/AN/Aparameter @tenant_idETL contextTenant metadata is outside the documented Brink staging payloads.
_etl_batch_idstaging.brink_sales2_orders_etl_batch_id_etl_batch_idMappedETL metadata propagated from staging.
_etl_source_typestaging.brink_sales2_orders_etl_source_type_etl_source_typeMappedETL metadata propagated from staging.
_etl_ingested_atstaging.brink_sales2_orders_etl_ingested_at_utc_etl_ingested_at_utc AS _etl_ingested_atMappedETL metadata propagated from staging.

Portal and sample validation

Curated fieldAdditional validated sourceHow to use it
destinationSettings2.GetDestinations -> Destinations[].(Name, Indicator, IsDelivery)Portal WSDL and sample response confirm extra destination metadata that can strengthen service-channel normalization without changing the current mapping.
external_idSales2.GetOrders -> Orders[].IdNoLocationSample orders confirm IdNoLocation exists and can be kept as an extra business-facing order identifier.
customer_guidtemp/GetOrders_WithKnownBusinessDate_CallsRealBrinkEndpoint_2024-10-06.xml -> Orders[].CustomerIdSample payload confirms the field exists, although many rows are null in the example dataset.
order_messagesSales2.GetOrders -> Orders[].OrderAdditionalDetailsSample payload confirms the field exists even when null; keep it as an optional JSON/text details source.