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

curated.pos_tables

Purpose

This table stores POS table lookup data used by dine-in operations. It provides the business identifiers and presentation fields needed to connect orders or layouts to specific restaurant tables.

It acts as lightweight reference data and is typically joined to more transactional datasets rather than queried on its own.

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
idINTEGERYesTable identifier in the POS source.
usernumberINTEGERYesUser-visible table number in the source system.
revcenterINTEGERYesRevenue center associated with the table.
numseatsINTEGERYesNumber of seats available at the table.
owneridINTEGERYesOwning configuration or location identifier.
descVARCHAR(20)YesShort descriptive label for the table.
styleINTEGERYesStyle or layout code for the table.
table_nameVARCHAR(255)YesReadable business name or label for the table.
revenue_center_nameVARCHAR(255)YesReadable revenue center name associated with the table.
zone_nameVARCHAR(255)YesReadable dining zone or seating area name for the table.
style_nameVARCHAR(255)YesReadable business label for the table style.
is_activeBOOLEANYesCanonical flag indicating whether the table is active in the curated model.

Technical and ETL properties

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