-- Deploy gaia:hera_2017_08_15_create_sendmailtasklog to mysql

BEGIN;

CREATE TABLE `hera_sendemailtasklog` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `task_id` varchar(50) NOT NULL,
    `user_id` integer NOT NULL,
    `user_name` varchar(100) NOT NULL,
    `send_email` varchar(100) NOT NULL,
    `title` varchar(100) NOT NULL,
    `status` varchar(100) NOT NULL,
    `join_time` datetime(6) NOT NULL,
    `start_time` datetime(6),
    `end_time` datetime(6),
    `current` integer NOT NULL,
    `total` integer NOT NULL,
    `options` longtext NOT NULL
)
;

COMMIT;
