-- Deploy gaia:2019_4_29_create_table_icon to mysql

BEGIN;

CREATE TABLE `api_icon` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `order` integer UNSIGNED NOT NULL,
    `title` varchar(20) NOT NULL UNIQUE,
    `title_id` varchar(20) NOT NULL UNIQUE,
    `color` varchar(50) NOT NULL,
    `image` varchar(1024) NOT NULL,
    `url` varchar(1024) NOT NULL,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL);

CREATE INDEX `api_icon_order_013003dd` ON `api_icon` (`order`);


COMMIT;
