Skip to main content

Operation Record

Overview

The OperationRecord entity represents an instance of an operation that has been performed within the MES system. Key attributes include status, start and end dates, and associated operation and production order details. These fields enable tracking of the execution and completion of specific operations, providing a record of when and where each operation took place.

Table Structure

The following table outlines the SQL columns for the operation_records table, providing a brief description of each, along with sample data where applicable.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the entity.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not.true
created_dateDateTimeDate the entity was created.2024-12-31T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2024-12-31T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.some extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.some extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.some extra context 3
nameStringName of the operation record. Note this is a copy of what the operation's name was that created it.Packaging
start_dateDateTimeTimestamp marking when the operation started.2024-05-10T08:00:00Z
end_dateDateTimeTimestamp marking when the operation stopped.2024-05-10T10:00:00Z
statusString (Enum)Status of the operation record, as defined by the Status enum.UNKNOWN
location_idString (ULID)References the location where the operation took place. See locations.01JAP8RJBN-4VYZUKE1-LY2QHV8X
operation_idString (ULID)References the operation definition that this operation record is for. See operations.01JAP8R5RT-3FPXQABY-7KQZT6VF
production_order_idString (ULID)References the production order that this operation record is for. See production_orders.01JAP8RJBN-7KQZT6VF-Q5VUZYPW
schedule_shift_record_idString (ULID)References the associated schedule shift record. See schedule_shift_records.01JAP8RJBN-8ZTPXSGY-J9GSDPE1

Field Details

name

The name field provides a descriptive identifier for the operation record. Note this is a copy of what the operation's name was that created it.

start_date and end_date

  • start_date: Timestamp indicating when the operation started.
  • end_date: Timestamp indicating when the operation stopped.

These timestamps provide temporal context for each operation record.

status

Represents the status of the operation record, as defined by the Status enum, with options such as IDLE, RUNNING, COMPLETED, FAULTED, CANCELLED, UNKNOWN, and PAUSED.

location_id

References the Location entity where this operation took place, allowing precise tracking of where this operation is within the facility. See locations for details.

operation_id

References the Operation entity associated with this operation record, providing context to what instance of an operation that has been performed. See operations for details.

production_order_id

Indicates the associated ProductionOrder, linking the operation record to the production order. See production_orders for details.

schedule_shift_record_id

References the ScheduleShiftRecord entity that was active during which this operation was performed. This relationship connects the operation record to its specific shift record instance, allowing for better tracking of operations within the context of scheduled shifts. See schedule_shift_records for details.