Back to ER Diagram
Equipment Management

Equipment Management Logic

Equipment master, allocation to projects, fuel tracking, maintenance scheduling, breakdown management, and utilization reporting.

PostgreSQL
9 Tables
Schema: equipment
Fuel Tracking

Overview

Equipment Management tracks heavy machinery and construction equipment across projects. Equipment is registered in a master list with specifications, allocated to projects, and monitored for fuel consumption, maintenance schedules, and breakdowns. Utilization hours are captured from DPR and equipment logs. Cost per hour is calculated for project cost allocation.


Register

Allocate

Track Usage

Maintain

Cost Report
9
Equipment Tables
Daily
Usage Logging
Preventive
Maintenance
₹/hr
Cost Tracking

Status States

StatusDescriptionAllowed ActionsNext States
AvailableEquipment idle, ready for allocationAllocate, Transfer, DisposeAllocated
AllocatedAssigned to a projectLog Hours, Fuel, MaintainAvailable, Under Maintenance
Under MaintenanceScheduled or breakdown maintenanceComplete Repair, Update StatusAvailable, Allocated
BreakdownUnplanned failure, needs repairCreate Maintenance RequestUnder Maintenance
DisposedEquipment decommissioned/soldView History

Database Schema

equipment.equipment_master

  • equipment_id — PK, unique equipment record
  • tenant_id — FK → organization.tenant
  • equipment_code, equipment_name — Asset identification
  • category, make, model, year — Classification details
  • capacity, fuel_type — Operational specifications
  • ownership_type — owned | hired | leased
  • hourly_rate, status — Cost and availability state

equipment.equipment_allocation

  • allocation_id — PK
  • equipment_id — FK → equipment.equipment_master
  • project_id — FK → project.project
  • allocated_from, allocated_to — Date range of deployment
  • daily_rate, shift_hours — Cost and usage parameters

equipment.fuel_log

  • fuel_id — PK
  • equipment_id — FK → equipment.equipment_master
  • log_date, fuel_qty, fuel_cost — Daily fuel consumption
  • odometer_reading, hour_meter — Usage measurement
  • filled_by — FK → admin.user

equipment.equipment_maintenance

  • maintenance_id — PK
  • equipment_id — FK → equipment.equipment_master
  • maintenance_type — preventive | corrective | overhaul
  • scheduled_date, actual_date — Planning vs execution
  • cost, downtime_hours — Financial and availability impact
  • performed_by — Internal or vendor reference

equipment.equipment_breakdown

  • breakdown_id — PK
  • equipment_id — FK → equipment.equipment_master
  • reported_date, resolved_date — Breakdown duration
  • failure_type, root_cause — Analysis fields
  • production_loss_hours — Impact on project schedule

Equipment Operations

1

Equipment Registration

Register equipment with make, model, capacity, ownership type, and hourly rate. Owned equipment linked to fixed assets. Hired equipment linked to rental agreement.

2

Project Allocation

Allocate equipment to project with date range and shift details. System checks availability to prevent double-booking. Allocation triggers cost accrual in project.

3

Daily Usage Logging

Operators log daily hours and fuel consumption via DPR equipment section. Hour meter readings validated against previous entry (cannot decrease).

4

Maintenance Management

Preventive maintenance scheduled based on hour meter thresholds (e.g., every 250 hours). Breakdown reported by operator → maintenance team dispatched. Downtime tracked.

5

Cost & Utilization Reporting

Monthly utilization = actual hours / available hours × 100. Cost per hour includes fuel, maintenance, depreciation, and operator cost. Idle equipment flagged for redeployment.

Equipment Queries

Equipment Utilization Report

-- Monthly utilization and cost per equipment
SELECT em.equipment_code, em.equipment_name,
       SUM(el.working_hours) AS total_hours,
       SUM(fl.fuel_qty) AS total_fuel,
       SUM(fl.fuel_cost) AS fuel_cost,
       ROUND(SUM(el.working_hours) / (26.0 * 8) * 100, 1) AS utilization_pct
FROM equipment.equipment_master em
LEFT JOIN equipment.equipment_log el ON el.equipment_id = em.equipment_id
LEFT JOIN equipment.fuel_log fl ON fl.equipment_id = em.equipment_id
WHERE el.log_date BETWEEN :start_date AND :end_date
GROUP BY em.equipment_id;

Validation Rules

Business Rules

  • Double Booking: Equipment cannot be allocated to two projects for overlapping dates
  • Hour Meter: Current reading must be ≥ previous reading
  • Fuel Rate: Fuel consumption rate checked against benchmark; anomalies flagged
  • PM Schedule: Preventive maintenance overdue by >50 hours triggers mandatory service

Integration Points

Connected Modules

  • Project: Equipment allocated to project; usage logged in DPR
  • Finance: Equipment cost allocated to project cost codes via journal entries
  • Fleet: Vehicles with attached equipment (e.g., truck-mounted crane) linked
  • HSE: Equipment inspection certificates tracked for safety compliance

Best Practices

Recommended

  • Set preventive maintenance at 250/500/1000 hour intervals
  • Track idle time and redeploy underutilized equipment monthly
  • Benchmark fuel consumption rates per equipment category
  • Maintain operator certification records linked to equipment type