-- Deploy mimas-talos:2019_8_12_create_table_follow_msg_notify to mysql

BEGIN;

CREATE TABLE `api_followmsgnotification` (
                            `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
                            `user_id` integer NOT NULL,
                            `fans_id` integer NOT NULL,
                            `create_time` datetime(6) NOT NULL,
                            `update_time` datetime(6) NOT NULL,
                            `is_read` bool NOT NULL,
                            `is_online` bool NOT NULL,
                            `source_type` varchar(2) NOT NULL,
                            `business_id` integer NOT NULL);
CREATE INDEX `api_followmsgnotification_e8701ad4` ON `api_followmsgnotification` (`user_id`);
CREATE INDEX `api_followmsgnotification_8ae7734b` ON `api_followmsgnotification` (`fans_id`);

COMMIT;
