-- Deploy gaia:variety_show_2020_06_01_create_idol_tag to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_young_idol_tag` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL,
    `idol_id` integer NOT NULL,
    `tag_id` integer NOT NULL
)
;
CREATE INDEX `api_young_idol_tag_5da782ff` ON `api_young_idol_tag` (`idol_id`);

COMMIT;
