-- Deploy gaia:2019_12_26_add_api_shortcut_screen_label to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_shortcut_screen_label` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `title` integer NOT NULL,
    `position` integer NOT NULL,
    `start_time` datetime(6) NOT NULL,
    `end_time` datetime(6) NOT NULL,
    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL,
    `operator_id` integer NOT NULL,
    `is_delete` bool NOT NULL
)
;
ALTER TABLE `api_shortcut_screen_label` ADD CONSTRAINT `operator_id_refs_id_5ec7f361` FOREIGN KEY (`operator_id`) REFERENCES `auth_user` (`id`);
CREATE INDEX `api_shortcut_screen_label_5e7ba3ec` ON `api_shortcut_screen_label` (`operator_id`);

COMMIT;
