-- Add pool_id to tournament_group for pooled group phases
ALTER TABLE `tournament_group`
  ADD COLUMN `pool_id` INT NULL AFTER `class_id`;

-- Add out_of_competition flags
ALTER TABLE `tournament_member`
  ADD COLUMN `out_of_competition` TINYINT(1) NOT NULL DEFAULT 0 AFTER `class_id`;

ALTER TABLE `external_tournament_participant`
  ADD COLUMN `out_of_competition` TINYINT(1) NOT NULL DEFAULT 0 AFTER `class_id`;

