-- Deploy gaia:2019-10-09-freecuritment to mysql

BEGIN;

CREATE TABLE `api_third_account_info` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `user_id` bigint NOT NULL,
    `activity_id` bigint NOT NULL,
    `push_type` smallint NOT NULL,
    `platform_type` smallint NOT NULL,
    `form_id` varchar(180) NOT NULL,

    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL,
    `is_online` bool NOT NULL
);

CREATE INDEX `api_third_account_info_e8701ad4` ON `api_third_account_info` (`user_id`);
CREATE INDEX `api_third_account_info_activity_id` ON `api_third_account_info` (`activity_id`);
CREATE INDEX `api_third_account_info_cb857215` ON `api_third_account_info` (`form_id`);

COMMIT;
