
🏭 Manufacturing · Database ERD
A schema for multi-level bills of materials: items, BOM headers and lines, routings and work centres.
Drawing diagram…
ERD for a bill of materials: Item (raw material, sub-assembly or finished good), BomHeader for a parent Item with version and effective date, BomLine linking the header to a component Item with quantity and unit, Routing for an Item with RoutingOperations performed at WorkCentres with setup and run times.
erDiagram
ITEM ||--o{ BOM_HEADER : "has BOM"
BOM_HEADER ||--|{ BOM_LINE : contains
ITEM ||--o{ BOM_LINE : "used as component"
ITEM ||--o{ ROUTING : "made by"
ROUTING ||--|{ ROUTING_OPERATION : steps
WORK_CENTRE ||--o{ ROUTING_OPERATION : performs
ITEM {
int id PK
string code
string type
string uom
}
BOM_HEADER {
int id PK
int item_id FK
string version
date effective_from
}
BOM_LINE {
int id PK
int bom_id FK
int component_id FK
decimal quantity
}
ROUTING_OPERATION {
int id PK
int routing_id FK
int work_centre_id FK
int seq
decimal run_minutes
}The states a production order goes through on the shop floor, from release by planning to closure, including material shortages, rework and scrap.
An incoming and in-process quality inspection flow: sampling, measurement against the spec, and what happens to a batch that fails.
A connected factory: machines and sensors on the shop floor, an edge layer, MES and ERP, and cloud analytics for OEE and predictive maintenance.
How production orders flow from ERP planning to the shop floor MES and how confirmations, goods movements and scrap flow back.
How vibration and temperature data from machines becomes a maintenance work order before the machine fails.
How materials flow from suppliers to customers in a manufacturing business: purchasing, inbound quality, production, warehousing and distribution.