Skip to main content

Production Order

Overview

The ProductionOrder entity manages information related to each production order, including product details, scheduling, customer information, and production quantities. This table enables efficient tracking and organization of production orders within the TamakiMES system.

Table Structure

The following table outlines the SQL columns for the production_orders 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
nameStringUnique name identifying the production order.Order001
start_dateDateTimeDate when production on this order began.2024-05-01 08:00:00
due_dateDateTimeExpected completion date for the production order.2024-06-15 00:00:00
end_dateDateTimeDate when the production was completed.2024-07-01 12:00:00
quantityDoubleTotal quantity planned for production.500.0
quantity_producedDoubleQuantity already produced as part of this production order.250.0
quantity_scheduledDoubleQuantity scheduled for production.300.0
schedule_priorityString (Enum)Priority level for scheduling, determining order in the production queue, as defined by the SchedulePriority enum.NORMAL
statusString (Enum)Running status of the production order, as defined by the ProductionOrderStatus enum.IDLE
location_idString (ULID)References the location where the production is taking place. See locations.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
product_material_idString (ULID)References the material being produced. See materials.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
customer_idString (ULID)References the customer associated with the order. See production_order_customers.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
schedule_shift_record_idString (ULID)References the associated schedule shift record. See schedule_shift_records.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
unit_of_measure_idString (ULID)References the unit of measure for quantity. See unit_of_measure.01JAP8R5RT-3FPXQABY-7KQZT6VF

Field Details

name

The name field provides a descriptive identifier for the production order.

start_date, due_date, end_date

  • start_date: Timestamp indicating when the production started.
  • due_date: Timestamp indicating the expected completion date for the production order.
  • end_date: Timestamp indicating when the production was completed.

These timestamps provide temporal context for each production order.

quantity, quantity_produced, quantity_scheduled

  • quantity: The quantity of units planned for production.
  • quantity_produced: The quantity of units already produced for this production order.
  • quantity_scheduled: The quantity of units scheduled for production.

These quantities provide metrics about the progress of the production order.

schedule_priority

Represents the priority of this production order, as defined by the SchedulePriority enum, with options such as LOW, NORMAL, HIGH, and URGENT.

status

Represents the running status of the production order, as defined by the ProductionOrderStatus enum, with options such as IDLE, SCHEDULED, RUNNING, PAUSED, STOPPED, CLOSED, and CANCELLED.

location_id

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

product_material_id

References the Material entity associated with the production order, providing context about the material's characteristics and properties. See materials for details.

customer_id

References the ProductionOrderCustomer entity associated with the production order, providing us information on the customer. See production_order_customers for details.

schedule_shift_record_id

References the ScheduleShiftRecord entity that was active at the location the production order ran. This relationship connects the production order to its specific shift instance, allowing for better tracking of production orders within the context of scheduled shifts. See schedule_shift_records for details.

unit_of_measure_id

References the unit of measure applicable to this material, such as kilograms or liters, supporting precise tracking of quantities. See unit_of_measure for details.