CREATE TABLE `streak_meta` (
  `key` varchar(255) NOT NULL,
  `value` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`key`)
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE `streak_users` (
  `twitch_id` bigint(20) unsigned NOT NULL,
  `username` varchar(255) NOT NULL,
  `streams_count` int(10) unsigned NOT NULL DEFAULT 0,
  `current_streak` int(10) unsigned NOT NULL DEFAULT 0,
  `max_streak` int(10) unsigned NOT NULL DEFAULT 0,
  `streak_status` enum('broken','pending','active') NOT NULL DEFAULT 'broken',
  PRIMARY KEY (`twitch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
