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_transactions.md 4,649 bytes · Updated Oct 23, 2026 10:44 AM EDT
Raw File

curated.pos_transactions

Purpose

This table stores transaction header facts in the current POS-oriented curated contract. It represents one transaction-level record with time-bucket, employee, revenue, and register context already flattened for analytics.

The shape is still close to a legacy POS warehouse contract, so consumers should treat it as an approved read surface rather than a normalized business model.

Schema contract

The deployed SQL under backend/Kds.Ai.Warehouse/Sql/Bootstrap/Tenant/Curated/ is the source of truth for the current column names, types, and nullability.

Column groups

  • Business properties describe the business entity, event, fact, or reference record represented by the table.
  • Technical and ETL properties describe warehouse lineage, surrogate keys, source reconciliation, tenant scoping, slowly changing dimension controls, and ingestion metadata.

Business properties

ColumnTypeNullableBusiness MeaningNotes
checkINTEGERYesPOS check or transaction number.
amountDOUBLE PRECISIONYesMain transaction amount.
openhourINTEGERYesHour when the transaction was opened.
openminINTEGERYesMinute when the transaction was opened.
orderhourINTEGERYesHour when the order was placed.
orderminINTEGERYesMinute when the order was placed.
closehourINTEGERYesHour when the transaction closed.
closeminINTEGERYesMinute when the transaction closed.
countINTEGERYesLegacy count metric carried by the source contract.
revenueINTEGERYesRevenue center or revenue bucket identifier.
unitINTEGERYesStore or business unit identifier from the POS.
dobDATEYesBusiness date of the transaction.
occasionINTEGERYesOccasion identifier such as meal or service occasion.
employeeINTEGERYesEmployee identifier associated with the transaction.
periodINTEGERYesBusiness period identifier used by the POS.
typeINTEGERYesTransaction type code from the POS source.
typeidINTEGERYesMore specific subtype identifier for the transaction.
shiftINTEGERYesShift identifier associated with the transaction.
typeid2INTEGERYesSecondary subtype identifier from the source contract.
revid2INTEGERYesSecondary revenue identifier.
store_nameVARCHAR(255)YesReadable store name associated with the transaction.
revenue_center_nameVARCHAR(255)YesReadable revenue center name associated with the transaction.
occasion_nameVARCHAR(255)YesReadable occasion or meal-period name associated with the transaction.
transaction_type_nameVARCHAR(255)YesReadable business label for the transaction type.
business_timestamp_utcTIMESTAMPYesUTC timestamp representing the canonical business time of the transaction.
guest_countINTEGERYesCanonical guest count associated with the transaction when available.
net_amountDECIMAL(18, 4)YesCanonical net transaction amount after discounts and before or after tax according to curated business rules.
currency_codeVARCHAR(10)YesISO or business-standard currency code used for transaction monetary values.
transaction_status_codeVARCHAR(100)YesStandardized canonical code describing the commercial state of the transaction.

Technical and ETL properties

ColumnTypeNullableTechnical MeaningNotes
transaction_keyBIGINTYesStable warehouse key for the transaction entity.
source_systemVARCHAR(100)YesCanonical name of the source platform that produced the transaction row.
source_transaction_idVARCHAR(199)YesOriginal transaction identifier from the source platform.
tenant_keyBIGINTYesStable warehouse key for the tenant, brand, or client that owns the transaction.
tenant_nameVARCHAR(255)YesReadable tenant, brand, or client name associated with the transaction.
_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.