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

curated.pos_jobs

Purpose

curated.pos_jobs is the shared job (workforce role) dimension in the warehouse.

It should answer the question: what workforce roles exist in the restaurant, what are their characteristics, and how are they classified?

Why this table matters

  • gives one row per job snapshot
  • provides workforce role classification with boolean flags: is_bartender, is_delivery_driver, is_delivery_dispatcher, is_hostess
  • keeps job identity context such as name, job_unique_id, and export_code
  • joins to curated.labor_shifts via job_id for workforce role attribution
  • creates a stable contract for future cross-source workforce role analyses

Grain

One row per job snapshot.

Column groups

  • Business properties describe the job: identity, name, role classification flags, and location type.
  • Technical and ETL properties describe warehouse lineage, surrogate keys, source reconciliation, tenant scoping, and ingestion metadata.

Business properties

ColumnTypeNullableBusiness MeaningNotes
job_idBIGINTNoSource-native job identifier.Preferred identifier for downstream joins.
nameVARCHAR(1024)YesHuman-readable job name.
job_unique_idVARCHAR(256)YesSource-system unique job identifier.
export_codeVARCHAR(256)YesExternal payroll or reporting export code.
is_bartenderBOOLEANYesWhether the job represents a bartender role.
is_delivery_driverBOOLEANYesWhether the job represents a delivery driver role.
is_delivery_dispatcherBOOLEANYesWhether the job represents a delivery dispatcher role.
is_hostessBOOLEANYesWhether the job represents a hostess role.
trainingBOOLEANYesWhether the job is designated as a training role.
location_typeVARCHAR(128)YesLocation type classification for the job.
snapshot_dateDATEYesDate of the job snapshot used for ETL partitioning.
is_activeBOOLEANYesWhether the job is currently active.Currently deferred to NULL in the Brink mapping.
currency_codeVARCHAR(10)YesCurrency of monetary values.Required when curated data spans multiple currency contexts.

Technical and ETL properties

ColumnTypeNullableTechnical MeaningNotes
source_systemVARCHAR(100)YesCanonical integration name used for lineage across source platforms.Identifies which operational platform produced the record.
source_job_idVARCHAR(199)YesOriginal source identifier kept for reconciliation and drill-through.Preserves the native source key.
job_keyBIGINTYesWarehouse-generated stable surrogate key for the job entity.Surrogate warehouse key for dimensional joins.
tenant_keyBIGINTYesWarehouse surrogate key for tenant or brand scope.
tenant_nameVARCHAR(255)YesTenant or brand identifier injected by the ETL context.Human-readable tenant or brand lineage value.
effective_from_utcTIMESTAMPYesSCD2 effective-from timestamp.Currently deferred to NULL.
effective_to_utcTIMESTAMPYesSCD2 effective-to timestamp.Currently deferred to NULL.
is_currentBOOLEANYesSCD2 current-row flag.Currently deferred to NULL.
_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.