What data do we require to keep the data for a specific player.
(localuniqueUserID), (CurrentRiskNickname), (OldRiskNickname default NULL seperated with ", " when multiple renamings occured), (RiskFriendID), CurrentDiscordName), (OldDiscordnames default NULL seperated with ", " when multiple renamings occured), (DiscordID), (Discordservers seperated with ", " if the player is available via multiple servers {this is required for the bot to be able to send a private message}), (Date of being added), (Userspecified password default NULL and if NULL personal page can't be opened, we do need to add some salt at the registrationphase)
Am i missing any data we might need to identify a user, I personally don't want to include name / email other contactinfo since if we ever could get a databreach we don't want to have anything of use outside of this tournamentsetting registered for players.
CREATE TABLE
riscordbot.userdata(UserIDINT NOT NULL AUTO_INCREMENT ,CurrentRiskNameTEXT NOT NULL ,PreviousRiskNamesTEXT NULL DEFAULT NULL ,RiskFriendIDVARCHAR NOT NULL ,CurrentDiscordNameTEXT NOT NULL ,PreviousDiscordNamesTEXT NULL DEFAULT NULL ,DiscordUserIDINT NOT NULL ,DiscordServersTEXT NOT NULL ,UserPasswordVARCHAR NOT NULL ,RegisterDateDATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP , UNIQUEUniqueUserID(UserID)) ENGINE = InnoDB;So while chatting, there should be a databasestructure linking userIDs in groups
family
irl friends
people that play often