Pybites Logo

Many-to-Many Relationships

Level: Intermediate (score: 3)

Here's the reality: workouts are composed of multiple exercises, and the same exercise appears in different workouts.

For example:

  • "Upper Body Day" includes: Bench Press, Pull Ups, Shoulder Press
  • "Push Day" also includes: Bench Press, Shoulder Press

This is a many-to-many relationship - each workout has many exercises, and each exercise belongs to many workouts.