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

curated.pos_transaction_items

Purpose

This table stores transaction item facts in a POS-oriented analytical shape. Each row represents a sold item or related transaction line with enough dimensional context to support sales, mix, tax, and operational reporting.

The structure is close to a legacy reporting contract, so many columns preserve source-specific identifiers and coded values rather than normalized business names.

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
checkINTEGERYesCheck or transaction number that owns the item row.
itemINTEGERYesSold item identifier.
categoryINTEGERYesCategory identifier for the item.
hourINTEGERYesHour bucket associated with the item transaction.
minuteINTEGERYesMinute bucket associated with the item transaction.
revidINTEGERYesRevenue identifier used by the source contract.
priceDOUBLE PRECISIONYesUnit or recorded price for the item row.
unitINTEGERYesStore or business unit identifier.
dobDATEYesBusiness date of the transaction item.
occasionINTEGERYesOccasion identifier such as meal or service occasion.
quantityDOUBLE PRECISIONYesQuantity sold for the item line.
discpricDOUBLE PRECISIONYesDiscounted price recorded for the item.
bohnameVARCHAR(20)YesBack-of-house item name.
orgpriceDOUBLE PRECISIONYesOriginal price before discounts or overrides.
typeINTEGERYesTransaction item type code from the source POS.
parentINTEGERYesParent item identifier for combo or nested item structures.
modeINTEGERYesMode identifier used by the POS contract.
periodINTEGERYesBusiness period identifier.
taxidINTEGERYesPrimary tax identifier applied to the item.
termidINTEGERYesTerminal identifier associated with the sale.
menuINTEGERYesMenu identifier associated with the item.
originINTEGERYesOrigin code indicating where the item came from.
modcodeINTEGERYesModifier code applied to the item when relevant.
seatINTEGERYesSeat number associated with the item.
entryidINTEGERYesEntry identifier for the item row inside the transaction.
taxid2INTEGERYesSecondary tax identifier applied to the item.
revid2INTEGERYesSecondary revenue identifier.
conceptINTEGERYesConcept or brand identifier in the source contract.
incltaxDOUBLE PRECISIONYesInclusive tax amount recorded for the item.
courseINTEGERYesCourse identifier for kitchen or service sequencing.
excltaxINTEGERYesExclusive-tax indicator or amount field from the source contract.
parentmodINTEGERYesParent modifier identifier for nested modifier structures.
etime_hourINTEGERYesEvent-time hour component recorded by the source contract.
etime_minINTEGERYesEvent-time minute component recorded by the source contract.
etime_secINTEGERYesEvent-time second component recorded by the source contract.
tableidINTEGERYesTable identifier associated with the item sale.
qtyunitDOUBLE PRECISIONYesQuantity expressed in the source unit of measure.
substitutdINTEGERYesSubstitution indicator or related code.
portionINTEGERYesPortion identifier or portion size code.
occtaxidINTEGERYesOccasion tax identifier.
parentenidINTEGERYesParent entry identifier for nested lines.
item_nameVARCHAR(255)YesReadable sellable item name in canonical business form.
category_nameVARCHAR(255)YesReadable category name associated with the transaction item.
revenue_center_nameVARCHAR(255)YesReadable revenue center name associated with the transaction item.
terminal_nameVARCHAR(255)YesReadable terminal or order-origin name associated with the sale.
service_channelVARCHAR(100)YesStandardized business channel such as dine-in, takeout, kiosk, or delivery.
business_timestamp_utcTIMESTAMPYesUTC timestamp representing the canonical business moment of the transaction item.
discount_amountDECIMAL(18, 4)YesMonetary discount applied to the transaction item line.
currency_codeVARCHAR(10)YesISO or business-standard currency code used for item-level monetary values.

Technical and ETL properties

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