   KEY `PlaylistID` (`PlaylistID`),
   CONSTRAINT `FKplaylistID` FOREIGN KEY (`PlaylistID`) REFERENCES `playlists` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
   CONSTRAINT `FKvideoID` FOREIGN KEY (`VideoID`) REFERENCES `videos` (`videoID`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 CREATE TABLE `history` (
   `ID` int(11) NOT NULL AUTO_INCREMENT,

USE `ytradio`;
CREATE TABLE IF NOT EXISTS `videos` (
  `videoID` varchar(100) NOT NULL,
  `Title` longtext NOT NULL,
  `Poster` varchar(200) DEFAULT NULL,
  `Thumbnails` longtext,
  `FormattedTime` varchar(100) NOT NULL DEFAULT '0:00',
  `Duration` int(22) NOT NULL DEFAULT '0',
  PRIMARY KEY (`videoID`),
  UNIQUE KEY `videoID_UNIQUE` (`videoID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `users` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,

  KEY `Video_idx` (`VideoID`),
  CONSTRAINT `DJ` FOREIGN KEY (`DJ`) REFERENCES `users` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `Video` FOREIGN KEY (`VideoID`) REFERENCES `videos` (`videoID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
