-- Deploy gaia:api_2016_06_06_create_table_showcity to mysql

BEGIN;

CREATE TABLE `api_show_city` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `city_id` varchar(40) NOT NULL,
    `create_time` datetime(6) NOT NULL,
    `slide_id` integer NOT NULL
)
;
ALTER TABLE `api_show_city` ADD CONSTRAINT `slide_id_refs_id_0d33a67a` FOREIGN KEY (`slide_id`) REFERENCES `api_slide` (`id`);
ALTER TABLE `api_show_city` ADD CONSTRAINT `city_id_refs_id_640c3ef7` FOREIGN KEY (`city_id`) REFERENCES `api_city` (`id`);
COMMIT;
