-- Deploy gaia:pay_20180726_momo_log_db to mysql

BEGIN;

CREATE TABLE `pay_momo_stat_log` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `status` integer NOT NULL,
    `created_at` datetime(6) NOT NULL,
    `updated_at` datetime(6) NOT NULL,
    `message_type` integer NOT NULL,
    `json_text` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE INDEX `pay_momo_stat_log_74821be9` ON `pay_momo_stat_log` (`status`);
CREATE INDEX `pay_momo_stat_log_a47e921b` ON `pay_momo_stat_log` (`created_at`,`status`);
CREATE INDEX `pay_momo_stat_log_be917e7b` ON `pay_momo_stat_log` (`updated_at`,`status`);

COMMIT;
