CREATE TABLE `pos_action_log` (
	`id` bigint(20) NOT NULL COMMENT '主键ID',
	`url` varchar (100) NOT NULL COMMENT '访问url',
	`ip` varchar (20) NOT NULL COMMENT 'ip地址',
	`method` varchar (10) NOT NULL COMMENT 'http访问',
	`start_time` bigint(20) NOT NULL COMMENT 'api发起时间',
	`end_time` bigint(20) NOT NULL COMMENT 'api发起时间',
	`cost_time` INTEGER NOT NULL COMMENT '访问花费时间',
	`req_json` json DEFAULT NULL COMMENT '命令请求JSON',
	`res_json` json DEFAULT NULL COMMENT '返回结果',
	PRIMARY KEY (`id`)
) ENGINE=`InnoDB` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='POS访问LOG' CHECKSUM=0 DELAY_KEY_WRITE=0;

ALTER TABLE `pos_action_log` ADD INDEX `idx_Index` (`url`, `ip`, `method`, `start_time`);