CREATE TABLE IF NOT EXISTS `eb_live_room` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `streamer_name` varchar(255) NOT NULL,
  `stream_key` varchar(64) NOT NULL,
  `is_live` tinyint(1) NOT NULL DEFAULT 0,
  `create_time` datetime DEFAULT NULL,
  `started_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_stream_key` (`stream_key`),
  KEY `idx_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
