create database if not exists logic_logs default character set utf8 collate utf8_general_ci;

CREATE TABLE `logic_logs`.`kg_lobbies`  (
  `id` bigint(128) NOT NULL AUTO_INCREMENT,
  `guid` int(6) NULL DEFAULT NULL,
  `from` nvarchar(64) NULL DEFAULT NULL,
  `when` datetime(0) NULL DEFAULT NULL,
  `seq` bigint(16) NULL DEFAULT NULL,
  `level` nvarchar(16) NULL DEFAULT NULL,
  `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_guid`(`guid`) USING BTREE,
  INDEX `idx_when_desc`(`when`) USING BTREE,
  INDEX `idx_level`(`level`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;