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

curated.pos_table_definitions

Purpose

This table stores more structural table-definition metadata than curated.pos_tables. It is intended for layouts, parent-child table relationships, and table configuration rules that are more static than transactional dine-in activity.

Consumers can use it to understand table hierarchy, ownership, and allocation limits in the POS 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
tableidINTEGERYesIdentifier of the table definition.
nameVARCHAR(60)YesHuman-readable table definition name.
typeINTEGERYesTable-definition type code from the source system.
parentINTEGERYesParent table identifier for grouped or hierarchical layouts.
maxaddINTEGERYesMaximum additional capacity or extension value for the table.
table_type_nameVARCHAR(255)YesReadable business label for the table-definition type.
parent_table_nameVARCHAR(255)YesReadable name of the parent table definition when applicable.
zone_nameVARCHAR(255)YesReadable dining zone or area name associated with the table definition.
is_activeBOOLEANYesCanonical flag indicating whether the table definition is active in the curated model.

Technical and ETL properties

ColumnTypeNullableTechnical MeaningNotes
table_definition_keyBIGINTYesStable warehouse key for the table definition entity.
source_systemVARCHAR(100)YesCanonical name of the source platform that produced the table definition row.
source_table_definition_idVARCHAR(199)YesOriginal table definition identifier from the source platform.
tenant_keyBIGINTYesStable warehouse key for the tenant, brand, or client that owns the table definition.
tenant_nameVARCHAR(255)YesReadable tenant, brand, or client name associated with the table definition.
effective_from_utcTIMESTAMPYesUTC timestamp from which the current table-definition version is valid.
effective_to_utcTIMESTAMPYesUTC timestamp until which the current table-definition version is valid.
is_currentBOOLEANYesCanonical flag indicating whether the row is the current table-definition version.
_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.