ALTER TABLE `events`
  ADD COLUMN `registrations_open` TINYINT(1) NOT NULL DEFAULT 1 AFTER `available_capacity`,
  ADD COLUMN `waitlist_enabled` TINYINT(1) NOT NULL DEFAULT 0 AFTER `registrations_open`;

ALTER TABLE `event_registrations`
  ADD KEY `registration_event_status_created_index` (`event_id`,`status`,`created_at`);
