text: CREATE TABLE `mysql_slow_query_review` (
    `checksum` bigint(20) unsigned NOT NULL,
    `fingerprint` longtext NOT NULL,
    `sample` longtext NOT NULL,
    `first_seen` datetime(6) DEFAULT NULL,
    `last_seen` datetime(6) DEFAULT NULL,
    `reviewed_by` varchar(20) DEFAULT NULL,
    `reviewed_on` datetime(6) DEFAULT NULL,
    `comments` longtext,
    `reviewed_status` varchar(24) DEFAULT NULL,
    PRIMARY KEY (`checksum`),
    KEY `idx_last_seen` (`last_seen`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  CREATE TABLE `mysql_slow_query_review_history` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `hostname_max` varchar(64) NOT NULL,
    `client_max` varchar(64) DEFAULT NULL,
    `user_max` varchar(64) NOT NULL,
    `db_max` varchar(64) DEFAULT NULL,
    `checksum` bigint(20) unsigned NOT NULL,
    `sample` longtext NOT NULL,
    `ts_min` datetime(6) NOT NULL,
    `ts_max` datetime(6) NOT NULL,
    `ts_cnt` double DEFAULT NULL,
    `Query_time_sum` double DEFAULT NULL,
    `Query_time_min` double DEFAULT NULL,
    `Query_time_max` double DEFAULT NULL,
    `Query_time_pct_95` double DEFAULT NULL,
    `Query_time_stddev` double DEFAULT NULL,
    `Query_time_median` double DEFAULT NULL,
    `Lock_time_sum` double DEFAULT NULL,
    `Lock_time_min` double DEFAULT NULL,
    `Lock_time_max` double DEFAULT NULL,
    `Lock_time_pct_95` double DEFAULT NULL,
    `Lock_time_stddev` double DEFAULT NULL,
    `Lock_time_median` double DEFAULT NULL,
    `Rows_sent_sum` double DEFAULT NULL,
    `Rows_sent_min` double DEFAULT NULL,
    `Rows_sent_max` double DEFAULT NULL,
    `Rows_sent_pct_95` double DEFAULT NULL,
    `Rows_sent_stddev` double DEFAULT NULL,
    `Rows_sent_median` double DEFAULT NULL,
    `Rows_examined_sum` double DEFAULT NULL,
    `Rows_examined_min` double DEFAULT NULL,
    `Rows_examined_max` double DEFAULT NULL,
    `Rows_examined_pct_95` double DEFAULT NULL,
    `Rows_examined_stddev` double DEFAULT NULL,
    `Rows_examined_median` double DEFAULT NULL,
    `Rows_affected_sum` double DEFAULT NULL,
    `Rows_affected_min` double DEFAULT NULL,
    `Rows_affected_max` double DEFAULT NULL,
    `Rows_affected_pct_95` double DEFAULT NULL,
    `Rows_affected_stddev` double DEFAULT NULL,
    `Rows_affected_median` double DEFAULT NULL,
    `Rows_read_sum` double DEFAULT NULL,
    `Rows_read_min` double DEFAULT NULL,
    `Rows_read_max` double DEFAULT NULL,
    `Rows_read_pct_95` double DEFAULT NULL,
    `Rows_read_stddev` double DEFAULT NULL,
    `Rows_read_median` double DEFAULT NULL,
    `Merge_passes_sum` double DEFAULT NULL,
    `Merge_passes_min` double DEFAULT NULL,
    `Merge_passes_max` double DEFAULT NULL,
    `Merge_passes_pct_95` double DEFAULT NULL,
    `Merge_passes_stddev` double DEFAULT NULL,
    `Merge_passes_median` double DEFAULT NULL,
    `InnoDB_IO_r_ops_min` double DEFAULT NULL,
    `InnoDB_IO_r_ops_max` double DEFAULT NULL,
    `InnoDB_IO_r_ops_pct_95` double DEFAULT NULL,
    `InnoDB_IO_r_ops_stddev` double DEFAULT NULL,
    `InnoDB_IO_r_ops_median` double DEFAULT NULL,
    `InnoDB_IO_r_bytes_min` double DEFAULT NULL,
    `InnoDB_IO_r_bytes_max` double DEFAULT NULL,
    `InnoDB_IO_r_bytes_pct_95` double DEFAULT NULL,
    `InnoDB_IO_r_bytes_stddev` double DEFAULT NULL,
    `InnoDB_IO_r_bytes_median` double DEFAULT NULL,
    `InnoDB_IO_r_wait_min` double DEFAULT NULL,
    `InnoDB_IO_r_wait_max` double DEFAULT NULL,
    `InnoDB_IO_r_wait_pct_95` double DEFAULT NULL,
    `InnoDB_IO_r_wait_stddev` double DEFAULT NULL,
    `InnoDB_IO_r_wait_median` double DEFAULT NULL,
    `InnoDB_rec_lock_wait_min` double DEFAULT NULL,
    `InnoDB_rec_lock_wait_max` double DEFAULT NULL,
    `InnoDB_rec_lock_wait_pct_95` double DEFAULT NULL,
    `InnoDB_rec_lock_wait_stddev` double DEFAULT NULL,
    `InnoDB_rec_lock_wait_median` double DEFAULT NULL,
    `InnoDB_queue_wait_min` double DEFAULT NULL,
    `InnoDB_queue_wait_max` double DEFAULT NULL,
    `InnoDB_queue_wait_pct_95` double DEFAULT NULL,
    `InnoDB_queue_wait_stddev` double DEFAULT NULL,
    `InnoDB_queue_wait_median` double DEFAULT NULL,
    `InnoDB_pages_distinct_min` double DEFAULT NULL,
    `InnoDB_pages_distinct_max` double DEFAULT NULL,
    `InnoDB_pages_distinct_pct_95` double DEFAULT NULL,
    `InnoDB_pages_distinct_stddev` double DEFAULT NULL,
    `InnoDB_pages_distinct_median` double DEFAULT NULL,
    `QC_Hit_cnt` double DEFAULT NULL,
    `QC_Hit_sum` double DEFAULT NULL,
    `Full_scan_cnt` double DEFAULT NULL,
    `Full_scan_sum` double DEFAULT NULL,
    `Full_join_cnt` double DEFAULT NULL,
    `Full_join_sum` double DEFAULT NULL,
    `Tmp_table_cnt` double DEFAULT NULL,
    `Tmp_table_sum` double DEFAULT NULL,
    `Tmp_table_on_disk_cnt` double DEFAULT NULL,
    `Tmp_table_on_disk_sum` double DEFAULT NULL,
    `Filesort_cnt` double DEFAULT NULL,
    `Filesort_sum` double DEFAULT NULL,
    `Filesort_on_disk_cnt` double DEFAULT NULL,
    `Filesort_on_disk_sum` double DEFAULT NULL,
    `Bytes_sum` float DEFAULT NULL,
    `Bytes_min` float DEFAULT NULL,
    `Bytes_max` float DEFAULT NULL,
    `Bytes_pct_95` float DEFAULT NULL,
    `Bytes_stddev` float DEFAULT NULL,
    `Bytes_median` float DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `idx_hostname_max_ts_min` (`hostname_max`,`ts_min`),
    KEY `idx_checksum` (`checksum`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;