Pybites Logo

One-to-Many Relationships

Level: Beginner (score: 2)

The gym wants to track workout performance over time! Each time someone completes a workout, they log their sets, reps, and weights.

This introduces a relationship: one workout can have many log entries, but each log entry belongs to exactly one workout. This is called a one-to-many relationship.