text: -- +migrate Up
  CREATE TABLE `wob_user` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `email` varchar(150) NOT NULL,
    `password` varchar(100) NOT NULL,
    `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    UNIQUE KEY `email` (`email`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  CREATE TABLE `wob_patch` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `number` varchar(55) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    UNIQUE KEY `number` (`number`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  CREATE TABLE `wob_region` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `name` varchar(55) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    UNIQUE KEY `name` (`name`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  CREATE TABLE `wob_server` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `name` varchar(55) NOT NULL,
    `id_region` bigint unsigned NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    UNIQUE KEY `unique_server_per_region` (`name`,`id_region`) USING BTREE,
    KEY `id_region` (`id_region`),
    CONSTRAINT `wob_server_ibfk_1` FOREIGN KEY (`id_region`) REFERENCES `wob_region` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  CREATE TABLE `wob_config` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `id_server` bigint unsigned NOT NULL,
    `id_patch` bigint unsigned NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    KEY `id_server` (`id_server`),
    KEY `id_patch` (`id_patch`),
    CONSTRAINT `wob_config_ibfk_1` FOREIGN KEY (`id_server`) REFERENCES `wob_server` (`id`),
    CONSTRAINT `wob_config_ibfk_2` FOREIGN KEY (`id_patch`) REFERENCES `wob_patch` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  CREATE TABLE `wob_community` (
    `id` bigint unsigned NOT NULL AUTO_INCREMENT,
    `bot_name` varchar(55) DEFAULT NULL,
    `bot_pp_url` varchar(255) NOT NULL,
    `id_config` bigint unsigned NOT NULL,
    `id_user` bigint unsigned NOT NULL,
    `api_key` varchar(255) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `id` (`id`),
    UNIQUE KEY `api_key_unique` (`api_key`) USING BTREE,
    KEY `id_config` (`id_config`),
    KEY `id_user` (`id_user`),
    CONSTRAINT `wob_community_ibfk_1` FOREIGN KEY (`id_config`) REFERENCES `wob_config` (`id`),
    CONSTRAINT `wob_community_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `wob_user` (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  
  -- +migrate Down
  DROP TABLE `wob_community`;
  DROP TABLE `wob_config`;
  DROP TABLE `wob_server`;
  DROP TABLE `wob_region`;
  DROP TABLE `wob_patch`;
  DROP TABLE `wob_user`;
  
  