Create Table: CREATE TABLE `log_user_type` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`app_id` varchar(255) NOT NULL DEFAULT '',
`uid` varchar(255) NOT NULL DEFAULT '',
`uuid` varchar(255) DEFAULT NULL,
`old_username` varchar(255) DEFAULT NULL,
`old_user_type` varchar(255) DEFAULT NULL,
`old_device` varchar(255) DEFAULT NULL,
`new_username` varchar(255) DEFAULT NULL,
`new_user_type` varchar(255) DEFAULT NULL,
`ip` varchar(255) DEFAULT NULL,
`user_agent` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */,
KEY `idx_uid` (`uid`),
KEY `idx_ip` (`ip`),
KEY `idx_created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=90001