ALTER TABLE `teams` ADD FOREIGN KEY (`userId`) REFERENCES `users`(`userId`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `teamMembers` ADD FOREIGN KEY (`userId`) REFERENCES `users`(`userId`) ON DELETE CASCADE ON UPDATE CASCADE,
                          ADD FOREIGN KEY (`teamId`) REFERENCES `teams`(`teamId`) ON DELETE CASCADE ON UPDATE CASCADE;