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/curated-model/pos_destinations.md 3,561 bytes · Updated Oct 23, 2026 10:44 AM EDT
Raw File

curated.pos_destinations

Purpose

curated.pos_destinations is the shared destination reference dimension in the warehouse.

It should answer the question: what order routing destinations exist, how are they configured, and are they currently active?

Why this table matters

  • gives one row per destination snapshot
  • provides order routing context: name, indicator, is_delivery, delivery_minutes
  • keeps destination lifecycle context such as is_active and snapshot_date
  • used as a lookup join in curated.pos_orders for order_type, destination, service_channel, and fulfillment_channel
  • creates a stable contract for future cross-source order-channel analyses

Grain

One row per destination snapshot.

Column groups

  • Business properties describe the destination: identity, routing configuration, delivery settings, and active status.
  • Technical and ETL properties describe warehouse lineage, surrogate keys, source reconciliation, tenant scoping, and ingestion metadata.

Business properties

ColumnTypeNullableBusiness MeaningNotes
destination_idBIGINTNoSource-native destination identifier.Preferred identifier for downstream joins.
nameVARCHAR(1024)YesHuman-readable destination name.Used as order_type and destination in curated.pos_orders.
indicatorVARCHAR(256)YesShort indicator code for the destination.
descriptionVARCHAR(65535)YesFull description of the destination.
is_activeBOOLEANYesWhether the destination is currently active.
is_deliveryBOOLEANYesWhether the destination represents a delivery channel.Used to derive service_channel and fulfillment_channel in curated.pos_orders.
delivery_minutesINTEGERYesExpected delivery time in minutes.
snapshot_dateDATEYesDate of the destination snapshot used for ETL partitioning.
currency_codeVARCHAR(10)YesCurrency of monetary values.Required when curated data spans multiple currency contexts.

Technical and ETL properties

ColumnTypeNullableTechnical MeaningNotes
source_systemVARCHAR(100)YesCanonical integration name used for lineage across source platforms.Identifies which operational platform produced the record.
source_destination_idVARCHAR(199)YesOriginal source identifier kept for reconciliation and drill-through.Preserves the native source key.
destination_keyBIGINTYesWarehouse-generated stable surrogate key for the destination entity.Surrogate warehouse key for dimensional joins.
tenant_keyBIGINTYesWarehouse surrogate key for tenant or brand scope.
tenant_nameVARCHAR(255)YesTenant or brand identifier injected by the ETL context.Human-readable tenant or brand lineage value.
effective_from_utcTIMESTAMPYesSCD2 effective-from timestamp.Currently deferred to NULL.
effective_to_utcTIMESTAMPYesSCD2 effective-to timestamp.Currently deferred to NULL.
is_currentBOOLEANYesSCD2 current-row flag.Currently deferred to NULL.
_etl_batch_idVARCHAR(256)YesETL batch lineage identifier.
_etl_source_typeVARCHAR(100)YesSource adapter type used by ETL.
_etl_ingested_atTIMESTAMPNoWarehouse ingestion timestamp for the curated row.Required ingestion audit timestamp.