
⛏️ Mining, Metals & Chemicals · Database ERD
Tables that trace a chemical product batch back to its raw material lots, process steps, quality tests and customer shipments, for recalls and audits.
Drawing diagram…
Batch traceability database: raw material lots come from suppliers; production batches consume lots with quantities; each batch has process steps with parameters (temperature, pressure, duration); quality tests are recorded per batch with results; shipments to customers contain batches.
erDiagram
SUPPLIER ||--o{ RAW_LOT : supplies
RAW_LOT ||--o{ BATCH_INPUT : "used in"
BATCH ||--|{ BATCH_INPUT : consumes
PRODUCT ||--o{ BATCH : "made as"
BATCH ||--|{ PROCESS_STEP : "goes through"
BATCH ||--o{ QUALITY_TEST : "tested by"
BATCH ||--o{ SHIPMENT_LINE : "shipped in"
SHIPMENT ||--|{ SHIPMENT_LINE : contains
CUSTOMER ||--o{ SHIPMENT : receives
SUPPLIER {
int id PK
string name
}
RAW_LOT {
int id PK
int supplier_id FK
string material
string lot_no
date received_on
}
PRODUCT {
int id PK
string name
string grade
}
BATCH {
int id PK
int product_id FK
string batch_no
date made_on
string status
}
BATCH_INPUT {
int id PK
int batch_id FK
int raw_lot_id FK
decimal quantity_kg
}
PROCESS_STEP {
int id PK
int batch_id FK
string step
decimal temperature_c
decimal pressure_bar
int minutes
}
QUALITY_TEST {
int id PK
int batch_id FK
string test
decimal result
boolean passed
}
CUSTOMER {
int id PK
string name
}
SHIPMENT {
int id PK
int customer_id FK
date shipped_on
}
SHIPMENT_LINE {
int id PK
int shipment_id FK
int batch_id FK
decimal quantity_kg
}A fleet management system for an open-pit mine: dump trucks and shovels report position and payload, a dispatch engine assigns loads, and a control room watches production live.
The states of a mining haul truck in each load-and-dump cycle, used by dispatch systems to measure productivity and waiting time.
How an underground mine keeps people connected and safe: leaky feeder radio, Wi-Fi, gas sensors and personnel tracking tags, linked to the surface control room.
How mined ore becomes finished metal in an iron and steel chain, in thousand tonnes per month, showing where material is lost.
Where the control systems of a metal smelter run: field instruments, PLCs and a DCS in the plant, a historian, and a separate business network behind a demilitarised zone.
How a mine plans and carries out a blast safely: drill pattern design, explosive loading, area clearance, the blast, and post-blast checks.