DROP TABLE IF EXISTS `region_to_region_group`;

CREATE TABLE `region_to_region_group` (
  `region_to_region_group_id` INTEGER PRIMARY KEY AUTOINCREMENT,
  `country_id` INT UNSIGNED NOT NULL,
  `region_id` INT UNSIGNED NOT NULL DEFAULT '0',
  `region_group_id` INT UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
--  PRIMARY KEY (`region_to_region_group_id`)
);

CREATE INDEX `region_to_region_group_country_id` ON `region_to_region_group` (`country_id`);
CREATE INDEX `region_to_region_group_region_id` ON `region_to_region_group` (`region_id`);
CREATE INDEX `region_to_region_group_region_group_id` ON `region_to_region_group` (`region_group_id`);
