CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Mining, Metals & Chemicals

⛏️ Mining, Metals & Chemicals · Database ERD

Chemical Batch Traceability

Tables that trace a chemical product batch back to its raw material lots, process steps, quality tests and customer shipments, for recalls and audits.

More Mining, Metals & Chemicals templates

Drawing diagram…

What this diagram shows

  • Every batch records which raw material lots went in
  • Quality tests are stored per batch and step
  • Shipments link batches to customers for recalls

Prompt used

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.

Mermaid code
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
  }

Related templates

C4 ArchitectureProMining, Metals & Chemicals

Mine Fleet Management System

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.

State MachineMining, Metals & Chemicals

Haul Truck Cycle

The states of a mining haul truck in each load-and-dump cycle, used by dispatch systems to measure productivity and waiting time.

NetworkMining, Metals & Chemicals

Underground Mine Communication Network

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.

SankeyMining, Metals & Chemicals

Ore to Metal Material Flow

How mined ore becomes finished metal in an iron and steel chain, in thousand tonnes per month, showing where material is lost.

DeploymentProMining, Metals & Chemicals

Smelter Process Control Deployment

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.

FlowchartMining, Metals & Chemicals

Mine Blast Planning and Safety

How a mine plans and carries out a blast safely: drill pattern design, explosive loading, area clearance, the blast, and post-blast checks.