Constructing an ER Diagram for a Car Insurance Company (Customers–Cars–Accidents)

Constructing an ER Diagram for a Car Insurance Company (Customers–Cars–Accidents)

Verified Sources
Nov 4, 2026

A good ER design starts by identifying the main entity types, then specifying how they relate with correct cardinality and participation constraints.

In this problem, we must model:

  • Customer entities.
  • Car entities.
  • Accident entities.
  • Each customer owns one or more cars.
  • Each car has zero to any number of recorded accidents.

So we expect:

  • Customer → Car is 1..N (mandatory on the Customer side, because the statement says each customer owns one or more cars).
  • Car → Accident is 0..N (optional on the Car side, because a car may have zero recorded accidents).

A minimal ER schema can be built with three entity sets and two relationships. Conceptually, the ER model is:

Key constraint restatement with participation/cardinality:

  • For relationship owns(Customer, Car): Customer participation is total (1..N), Car participation is partial (a car may exist only if owned, but the prompt doesn’t explicitly say cars can exist without customers).
  • For relationship hasAccident(Car, Accident): Car participation is partial (0..N), Accident participation is total (each accident is associated with at least one car).

We now formalize this into a complete, buildable ER diagram design.

ER Diagram Basics: Entities, Attributes, Relationships, Cardinality

Entities, Attributes, and Relationship Types

We can choose practical attributes that make the diagram unambiguous for a car insurance company. Common modeling choices:

  • Customer
    • CustomerID (key)
    • Name
    • Phone/Email (optional)
  • Car
    • CarID (key)
    • VIN (often modeled as unique)
    • Make
    • Model
    • Year
  • Accident
    • AccidentID (key)
    • DateOfAccident
    • Location
    • Description
    • DamageCost (optional)

Then specify relationships:

  1. owns between Customer and Car

    • Cardinality: Customer (1..N) — Car (1..1..N depending on assumptions)
    • From the prompt: each customer owns one or more cars ⇒ Customer side is 1..N.
    • A typical assumption in ownership modeling: a car is owned by exactly one customer at a time (if you want a simple ER mapping). The prompt does not explicitly state this, so the safest ER statement is only what is forced: Customer-to-Car is 1..N.
  2. hasAccident between Car and Accident

    • Cardinality: Car (0..N) — Accident (1..1)
    • From the prompt: each car has zero to any number of recorded accidents ⇒ Car side is 0..N.
    • Each accident record must belong to a car in order to be “associated with it” ⇒ Accident side is 1..1 with respect to Car.

Cardinality constraints implied by the prompt

Interpreting 'one or more' and 'zero to any number' as ER cardinalities.

Step-by-step: Build the ER diagram from the constraints

  1. 1
    Step 1

    Create three entity sets: Customer, Car, Accident. Mark primary keys (e.g., CustomerID, CarID, AccidentID).

  2. 2
    Step 2

    Create relationship owns. Set cardinality based on 'each customer owns one or more cars' ⇒ Customer has 1..N cars.

  3. 3
    Step 3

    Create relationship hasAccident. Set cardinality based on 'each car has zero to any number of recorded accidents' ⇒ Car has 0..N accidents.

  4. 4
    Step 4

    Because wording specifies 'each customer' owns cars, Customer participation in owns is total (no Customer without Cars). Because wording allows 'zero accidents', Car participation in hasAccident is partial (a Car may have no accidents).

  5. 5
    Step 5

    Ensure every Accident instance is linked to a Car (otherwise it’s not 'associated with it'). Ensure at least one Car per Customer exists under the model’s ownership constraints.

  6. 6
    Step 6

    If your course expects a standard ER simplification, assume each Car belongs to exactly one Customer at a time, giving Car side cardinality of 1 relative to owns. If your course does not assume this, explicitly document the assumption as part of the diagram.

Canonical ER Diagram (Textual Specification)

Below is a clean ER specification you can translate into diagramming notation:

Entities

  • Customer(CustomerID PK, Name, …)
  • Car(CarID PK, VIN (unique), Make, Model, Year, …)
  • Accident(AccidentID PK, Date, Location, …)

Relationships

  1. owns: Customer ↔ Car

    • Cardinality: Customer 1..N to Car
    • Participation: Customer participation total (each customer owns ≥ 1 car)
  2. hasAccident: Car ↔ Accident

    • Cardinality: Car 0..N to Accident
    • Participation: Car participation partial (a car can have 0 accidents); Accident participation total (each recorded accident belongs to a car)

A simple diagram form (labels in “crow’s foot” style terms) is:

Pro Tip: Convert words to ER constraints

Translate quantifiers directly: “each customer owns one or more cars” → Customer side is 1..N; “each car has zero to any number of accidents” → Car side is 0..N.

Ambiguity to resolve: Does a car have one owner or many?

The prompt only guarantees Customer→Car is 1..N. If your ER notation requires a full cardinality on both sides, you must assume whether a Car is owned by exactly one Customer (common) or can change/fit other rules (then you’d model ownership history).

Common exam variations & how to respond

From requirements to an ER diagram (workflow)

Extract entities

Step A

Customer, Car, Accident are noun phrases; pick them as entity sets."

Extract relationships

Step B

“owns” links Customer–Car; “has accidents” links Car–Accident."

Extract cardinality

Step C

one or more ⇒ 1..N; zero to any number ⇒ 0..N."

Extract participation

Step D

“each customer” ⇒ total participation; “zero accidents possible” ⇒ partial participation."

ER Diagram Flashcards: Ownership & Accident Constraints

1 / 5
Question · Term

What does 'each customer owns one or more cars' imply in ER?

Click to reveal
Answer · Definition

Customer participation in owns is total; Customer-to-Car cardinality is 1..N.

Knowledge Check

Question 1 of 4
Q1Single choice

In the ER diagram, the statement 'each customer owns one or more cars' implies that in the owns relationship: