CREATE TABLE `foldertree` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(150) NOT NULL,
  `ParentId` int(11) NOT NULL,
  `username` mediumtext NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `Name` (`Name`,`ParentId`),
  KEY `ParentId_Index` (`ParentId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4