Skip to content

ER Diagram

Leonid Polechshuk edited this page Jun 11, 2026 · 5 revisions

Entity-Relationship Diagram

er diagram

Entities

  • Employee — base entity for all staff; extended by Driver and Logistician
  • Driver — employee who performs trips; has a DriverLicense
  • Logistician — employee who plans trips; can manage other logisticians (recursive relationship)
  • Truck — vehicle assigned to a trip
  • Trip — a single freight run performed by a driver, planned by a logistician, using a truck
  • Order — a freight order placed by a client company; transported within a trip
  • TripExpense — an expense recorded for a trip (fuel, toll, parking, service)
  • ClientCompany — a company that places orders

Key Relationships

  • EmployeeDriver, Logistician — complete exclusive inheritance
  • DriverhasDriverLicense (1:1)
  • LogisticianmanagesLogistician (recursive, 0:N to 0:1)
  • TriptransportsOrder (N:M)
  • TripcontainsTripExpense (1:N)
  • ClientCompanyplacesOrder (1:N)

Clone this wiki locally