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

curated.kitchen_order_items

Purpose

This table is the kitchen-facing line-item read model. Each row represents one order item that the kitchen may need to prepare, display, route, or analyze.

It supports item-level monitoring such as prep-time outliers, forgotten items, recall flow, and station bottleneck analysis.

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
guidVARCHAR(36)NoUnique identifier of the kitchen order item row.
order_guidVARCHAR(36)NoReference to the parent kitchen order.
nameVARCHAR(199)NoKitchen-visible item name.
categoryVARCHAR(100)YesLogical product or kitchen category for the item.
device_idINTEGERYesDevice or station identifier associated with the item.
is_prioritySMALLINTNoPriority flag used by kitchen workflow and anomaly detection.
item_bump_guidVARCHAR(36)YesReference to the source bump or completion event for the item.
create_timeINTEGERNoCanonical creation timestamp for the item row.
is_deletedSMALLINTNoSoft-delete flag for downstream filtering.
preparation_timeINTEGERYesCalculated or sourced preparation duration for the item.
quantityINTEGERNoOrdered quantity for the item line.
recall_timeINTEGERYesTimestamp when the item was recalled for rework or re-display.
external_idVARCHAR(199)NoExternal source identifier for the item.
pre_modifierVARCHAR(65535)YesFree-form modifier text that should be shown before the item name.
update_timeINTEGERNoCanonical last update timestamp for the item row.
printed_statusSMALLINTNoPrint-state flag used by KDS or chit workflows.
create_local_timeINTEGERYesLocal-time mirror of item creation time.
ready_since_local_timeINTEGERYesLocal timestamp from which the item has been ready.
countINTEGERYesLegacy count field from the source contract.
condiments_countINTEGERNoNumber of attached condiments or subcomponents.
transfer_from_device_idINTEGERYesDevice from which the item was transferred.
transfer_timeINTEGERYesTimestamp when the item was transferred.
untransfer_timeINTEGERYesTimestamp when a prior transfer was reversed.
beepedSMALLINTNoFlag indicating whether the item triggered an alert or beep.
build_cardVARCHAR(65535)YesBuild instructions or item assembly card content.
device_nameVARCHAR(255)YesReadable name of the device associated with the item.
station_nameVARCHAR(255)YesReadable kitchen station name associated with the item.
business_dateDATEYesBusiness date associated with the kitchen item.
create_time_utcTIMESTAMPYesUTC timestamp when the kitchen item was created in canonical warehouse time.
ready_state_nameVARCHAR(100)YesReadable current readiness or fulfillment state of the kitchen item.
recall_reasonVARCHAR(255)YesReadable reason for item recall or rework when available from the source.
item_status_nameVARCHAR(100)YesReadable canonical lifecycle status of the kitchen order item.

Technical and ETL properties

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