-- Deploy gaia:api_2018_2_22_create_diaryspreadfit to mysql

BEGIN;

CREATE TABLE `api_diaryspreadfit` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `city_id` varchar(40) NOT NULL,
    `commoncity` integer NOT NULL,
    `bescity` integer NOT NULL,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL
)
;
ALTER TABLE `api_diaryspreadfit` ADD CONSTRAINT `city_id_refs_id_1c1b88d0` FOREIGN KEY (`city_id`) REFERENCES `api_city` (`id`);



COMMIT;
