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

curated.inventory_items

Purpose

This table stores inventory master and stock-position data for items tracked outside the live order stream. It is intended for stock monitoring, replenishment logic, waste analysis, and cost-aware operational reporting.

Compared with POS item catalogs, this table focuses on supply and stock state rather than what the guest can order.

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
inventory_idINTEGERNoInventory-system identifier of the stocked item.
skuVARCHAR(30)NoStock keeping unit used for procurement and inventory control.
item_nameVARCHAR(255)NoHuman-readable inventory item name.
pos_item_idINTEGERYesOptional link to the POS item associated with this stock item.
category_nameVARCHAR(100)YesInventory category name.
unit_of_measureVARCHAR(30)NoUnit used to measure stock quantities.
cost_per_unitDECIMAL(10, 2)NoStandard cost for one unit of inventory.
quantity_on_handDECIMAL(10, 2)NoCurrent stock quantity available.
par_levelDECIMAL(10, 2)NoTarget stock level to maintain.
reorder_pointDECIMAL(10, 2)NoThreshold that should trigger replenishment.
vendor_nameVARCHAR(255)YesPreferred vendor or supplier name.
last_updatedTIMESTAMPYesLast time the inventory record was updated in the source.
store_idVARCHAR(199)YesCanonical store identifier associated with the inventory position.
store_nameVARCHAR(255)YesReadable store name associated with the inventory position.
vendor_idVARCHAR(199)YesCanonical vendor identifier for the preferred supplier.
item_statusVARCHAR(100)YesBusiness-friendly status of the inventory item such as active, discontinued, or seasonal.
last_counted_at_utcTIMESTAMPYesUTC timestamp of the last physical or system stock count.
updated_at_utcTIMESTAMPYesUTC timestamp when the curated inventory row was last updated.
currency_codeVARCHAR(10)YesISO or business-standard currency code used for item cost values.
snapshot_at_utcTIMESTAMPYesUTC timestamp representing when the stock position snapshot was captured.

Technical and ETL properties

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