
CREATE TABLE IF NOT EXISTS `training_session_drills` (
  `session_id` INT NOT NULL,
  `drill_id` INT NOT NULL,
  `sequence` INT NOT NULL DEFAULT 0,
  PRIMARY KEY (`session_id`, `drill_id`),
  FOREIGN KEY (`session_id`) REFERENCES `training_sessions`(`id`) ON DELETE CASCADE,
  FOREIGN KEY (`drill_id`) REFERENCES `drills`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
