-- Deploy gaia:2020_07_31_add_table_freemessage to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_freemessage` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `send_time` datetime(6) NOT NULL,
    `is_system` bool NOT NULL,
    `type` int NOT NULL
);
ALTER TABLE `api_freemessage` ADD INDEX `time`(`send_time`);
COMMIT;
