-- Deploy gaia:20200810_create_table_api_tag_city to mysql

BEGIN;

CREATE TABLE `api_tag_city` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `is_online` bool NOT NULL DEFAULT 1,
    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL,
    `tag_id` INTEGER NOT NULL,
    `city_id` VARCHAR(40) NOT NULL,
    KEY `idx_city_id` (`city_id`),
    KEY `idx_tag_id` (`tag_id`)
);

COMMIT;
