Downtime Reason

oee reason glossary

A Downtime Reason categorizes why a Machine or Station was not producing. Downtime reasons follow the group-reason hierarchy described in Reason Taxonomy, with the additional dimension of downtime type on the group level.

Database Tables

oee_downtime_groups

ColumnTypeDescription
idUUID (PK)Auto-generated
site_idUUID (FK)References Site
nameVARCHAR(100)Group name (e.g., “MECHANICAL”)
typeVARCHAR(20)'unplanned', 'planned', or 'idle'
sort_orderINTEGERDisplay ordering

The type field is unique to downtime groups and affects OEE calculations:

  • unplanned — Breakdowns, unexpected failures. Reduces Availability.
  • planned — Scheduled maintenance, changeovers. May or may not affect Availability depending on Site availability_mode.
  • idle — No work scheduled. Affects TEEP but not standard OEE.

oee_downtime_reasons

ColumnTypeDescription
idUUID (PK)Auto-generated
group_idUUID (FK)References oee_downtime_groups
codeVARCHAR(50)Reason code (e.g., “E042”), unique per group
nameVARCHAR(255)Reason name (e.g., “Conveyor Jam”)
descriptionTEXTOptional details
is_activeBOOLEANWhether reason is selectable
sort_orderINTEGERDisplay ordering

Note: The type field was removed from reasons — it is inherited from the parent group.

Usage

  • Referenced by oee_machine_events.downtime_reason_id when event_type = 'downtime'
  • Downtime type (from parent group) determines how the time is classified in OEE calculations

Codebase Paths

  • Tables: database/sql_scripts/tables/oee_downtime_groups.sql, database/sql_scripts/tables/oee_downtime_reasons.sql

See Also