CREATE TABLE IF NOT EXISTS game_open_callback_log (
  id BIGINT NOT NULL PRIMARY KEY,
  request_type VARCHAR(32) NOT NULL,
  sys_origin VARCHAR(32) DEFAULT NULL,
  order_id VARCHAR(128) DEFAULT NULL,
  game_id VARCHAR(64) DEFAULT NULL,
  round_id VARCHAR(128) DEFAULT NULL,
  room_id VARCHAR(64) DEFAULT NULL,
  user_id BIGINT DEFAULT NULL,
  request_json LONGTEXT NOT NULL,
  response_json LONGTEXT NOT NULL,
  biz_code INT NOT NULL DEFAULT 0,
  biz_message TEXT,
  status VARCHAR(32) NOT NULL,
  create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  KEY idx_game_open_log_type_time (request_type, create_time),
  KEY idx_game_open_log_order (order_id),
  KEY idx_game_open_log_user_time (user_id, create_time)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
