CREATE TABLE IF NOT EXISTS accountAmplifierThank (
    accountId INT NOT NULL,
    amplifierId INT NOT NULL,
	time TIMESTAMP NOT NULL,
	FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountAuth (
    id INT NOT NULL,
	accountId INT NOT NULL,
    authKey VARCHAR(128) NOT NULL,
    FOREIGN KEY (accountId) REFERENCES accounts(id));


CREATE TABLE IF NOT EXISTS accountCustomData (
    accountId INT NOT NULL,
	customDataId INT NOT NULL,
    FOREIGN KEY (accountId) REFERENCES accounts(id));

create or replace table accountfriend (
	id int not null,
	uuidSource varchar(100) not null,
	uuidTarget varchar(100) not null,
	status varchar(100) null,
	created timestamp null,
	sourceId int null,
	targetId int null,
	favourite int null,
	primary key (id, uuidSource, uuidTarget)
)
charset=latin1;
	
create or replace table accountfrienddata (
    accountId int not null,
    status    int null);
	
CREATE TABLE IF NOT EXISTS accountGemTransactions (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountGiveAway (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountIgnore (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS accountInventory (
	id INT NOT NULL AUTO_INCREMENT, 
	accountId INT NOT NULL, 
	itemId INT NOT NULL, 
	count INT NOT NULL, 
	PRIMARY KEY (id), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (itemId) REFERENCES items(id), 
	UNIQUE INDEX accountItemIndex (accountId, itemId));

CREATE TABLE IF NOT EXISTS accountMortenSpamTest (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountPets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

create or replace table accountkits (
    accountId int        not null,
    kitId     int        null,
    active    tinyint(1) not null);

create or replace index accountKitStats
    on accountkits (kitId, accountId);

create or replace table accountkitstats (
    accountId int    not null,
    kitId     int    not null,
    statId    int    null,
    value     bigint null);

create or replace table accountstatsalltime (
	accountId int null,
	statId int null,
	value int null);

CREATE TABLE IF NOT EXISTS accountPolls (
	id INT NOT NULL AUTO_INCREMENT, 
	accountId INT NOT NULL, 
	pollId INT NOT NULL,
	value TINYINT(1) NOT NULL, 
	PRIMARY KEY (id), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (pollId) REFERENCES polls(id), 
	UNIQUE INDEX accountPollIndex (accountId, pollId));
	
CREATE TABLE IF NOT EXISTS accountPreferences (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountPurchases (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountQuest (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountRanks (
	id INT NOT NULL AUTO_INCREMENT, 
	accountId INT NOT NULL, 
	rankIdentifier VARCHAR(40),
	primaryGroup BOOL, PRIMARY KEY(id),
	INDEX accountIndex (accountId), 
	INDEX rankIndex (rankIdentifier), 
	UNIQUE INDEX additionalIndex (
		accountId, 
		rankIdentifier, 
		primaryGroup), 
	FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accounts (
	id INT NOT NULL AUTO_INCREMENT, 
	uuid VARCHAR(100), 
	name VARCHAR(40), 
	gems INT, 
	lastLogin LONG, 
	totalPlayTime LONG, 
	PRIMARY KEY (id), 
	UNIQUE INDEX uuidIndex (uuid), 
	UNIQUE INDEX nameIndex (name));
	
CREATE TABLE IF NOT EXISTS accountStat (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
create or replace table reports (
	suspectId int null,
	categoryId int null,
	snapshotId int null,
	assignedTeam int null,
	region int null,
	id int null);
	
CREATE TABLE IF NOT EXISTS accountStatsAllTime (
	accountId INT NOT NULL, 
	statId INT NOT NULL, 
	value BIGINT NOT NULL, 
	PRIMARY KEY (accountId, statId),
	INDEX valueIndex (value DESC), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (statId) REFERENCES stats(id));
	
CREATE TABLE IF NOT EXISTS accountStatsYearly (
	accountId INT NOT NULL, 
	statId INT NOT NULL, 
	date DATE NOT NULL, 
	value BIGINT NOT NULL, 
	PRIMARY KEY (accountId, statId), 
	INDEX valueIndex (value DESC), 
	INDEX dateIndex (date), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (statId) REFERENCES stats(id));

CREATE TABLE IF NOT EXISTS accountStatsMonthly (
	accountId INT NOT NULL, 
	statId INT NOT NULL, 
	date DATE NOT NULL, 
	value BIGINT NOT NULL, 
	PRIMARY KEY (accountId, statId), 
	INDEX valueIndex (value DESC), 
	INDEX dateIndex (date), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (statId) REFERENCES stats(id));

CREATE TABLE IF NOT EXISTS accountStatsWeekly (
	accountId INT NOT NULL, 
	statId INT NOT NULL, 
	date DATE NOT NULL, 
	value BIGINT NOT NULL, 
	PRIMARY KEY (accountId, statId), 
	INDEX valueIndex (value DESC), 
	INDEX dateIndex (date), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (statId) REFERENCES stats(id));

CREATE TABLE IF NOT EXISTS accountStatsDaily (
	accountId INT NOT NULL, 
	statId INT NOT NULL, 
	date DATE NOT NULL, 
	value BIGINT NOT NULL, 
	PRIMARY KEY (accountId, statId), 
	INDEX valueIndex (value DESC), 
	INDEX dateIndex (date), 
	FOREIGN KEY (accountId) REFERENCES accounts(id), 
	FOREIGN KEY (statId) REFERENCES stats(id));

CREATE TABLE IF NOT EXISTS statSeasons (
	id SMALLINT NOT NULL, 
	seasonName VARCHAR(50) NOT NULL, 
	startDate TIMESTAMP NOT NULL DEFAULT '1969-12-31 18:00:01', 
	endDate TIMESTAMP NOT NULL DEFAULT '1969-12-31 18:00:01', 
	PRIMARY KEY (id), 
	UNIQUE INDEX seasonIndex (seasonName), 
	INDEX startIndex (startDate), 
	INDEX endIndex (endDate));
	
CREATE TABLE IF NOT EXISTS accountTasks (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountThank (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountThankTransactions (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountTip (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountTipClaimLogs (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountTipLogs (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS `accountTitle` (
	`accountId` int(11) NOT NULL,
	`trackName` VARCHAR(16) NOT NULL, 
	PRIMARY KEY (`accountId`), 
	CONSTRAINT `accountTitle_account` FOREIGN KEY (`accountId`) REFERENCES `accounts` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
	);

CREATE TABLE IF NOT EXISTS accountTransactions (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS accountValentinesGift (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));


CREATE TABLE IF NOT EXISTS accountWebsiteLinkCode (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS activeTournaments (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS anticheat_ban_metadata (
	id INT NOT NULL AUTO_INCREMENT, 
	accountId INT, 
	banId CHAR(10) NOT NULL, 
	data MEDIUMTEXT NOT NULL, 
	PRIMARY KEY(id));

CREATE TABLE IF NOT EXISTS banwavePending (
	accountId INT(11) NOT NULL, 
	timeToBan BIGINT UNSIGNED NOT NULL,
	hacktype VARCHAR(64), message VARCHAR(255), 
	vl INT, server VARCHAR(32), 
	PRIMARY KEY (accountId), 
	FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS banwaveProcessed (
	id INT NOT NULL AUTO_INCREMENT,
	accountId INT(11) NOT NULL, 
	timeToBan BIGINT UNSIGNED NOT NULL, 
	hacktype VARCHAR(64), 
	message VARCHAR(255), 
	vl INT, server VARCHAR(32), 
	PRIMARY KEY (id), 
	FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS battlePets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS bonus (
	accountId INT NOT NULL AUTO_INCREMENT, 
	dailytime TIMESTAMP NULL DEFAULT NULL, 
	clansdailytime TIMESTAMP NULL DEFAULT NULL, 
	ranktime DATE NULL DEFAULT NULL, 
	votetime DATE NULL DEFAULT NULL, 
	clansvotetime DATE NULL DEFAULT NULL, 
	PRIMARY KEY (accountId), 
	FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS bonusLog (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS botSpam (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS BungeeStats (
	id INT NOT NULL AUTO_INCREMENT, 
	address VARCHAR(25), 
	updated LONG, 
	players INT, 
	maxPlayers INT, 
	alive BOOLEAN NOT NULL, 
	online BOOLEAN NOT NULL, 
	US BOOLEAN NOT NULL DEFAULT '1', 
	PRIMARY KEY (id));
	
CREATE TABLE IF NOT EXISTS chatsnap (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanAlliances (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanBanners (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanBans (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanEnemies (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanMember (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanNameBlacklist (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clans (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS clansGold (
	serverId int(11) not null, 
	accountId int(11) not null, 
	gold int not null, 
	primary key (serverId, accountId), 
	index valueIndex (serverId, accountId, gold), 
	index goldIndex (serverId, gold), 
	foreign key (serverId) references clanServer(id), 
	foreign key (accountId) references accounts(id));

CREATE TABLE IF NOT EXISTS clanServer (
    accountId INT NOT NULL,
    id INT NOT NULL,
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansShopItem (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansNetherPortal (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansOutpost (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansPvpTimer (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansSiegeWeapons (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clansTutorial (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanTerritory (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS clanWar (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS customData(
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS DedicatedServerStats (
	id INT NOT NULL AUTO_INCREMENT, 
	serverName VARCHAR(100), 
	address VARCHAR(25), 
	updated LONG, 
	cpu TINYINT, 
	ram MEDIUMINT, 
	usedCpuPercent DOUBLE(4,2), 
	usedRamPercent DOUBLE(4,2), 
	US BOOLEAN NOT NULL DEFAULT '1', 
	PRIMARY KEY (id));

CREATE TABLE IF NOT EXISTS eloRating (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS facebook (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS fieldBlock (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS fieldMonster (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS fieldOre (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS gadgets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS giveaway (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS giveawayCooldown (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS incognitoStaff (
	accountId INT NOT NULL, 
	status TINYINT(1) DEFAULT '0', 
	PRIMARY KEY (accountId));

CREATE TABLE IF NOT EXISTS itemCategories (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS items (
	id INT NOT NULL AUTO_INCREMENT, 
	name VARCHAR(100), 
	rarity INT, 
	PRIMARY KEY (id), 
	INDEX mameIndex (name));
	
CREATE TABLE IF NOT EXISTS kitpreferences (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS `kitProgression` (
	`uuid` VARCHAR(36), 
	`kitId` VARCHAR(64), 
	`level` INT, 
	`xp` INT, 
	`upgrade_level` INT, 
	`default` TINYINT, 
	PRIMARY KEY(uuid, kitId));
	
CREATE TABLE IF NOT EXISTS mail (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS mailbox (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS NetworkStats (
	id INT NOT NULL AUTO_INCREMENT, 
	updated LONG, 
	players INT, 
	totalNetworkCpuUsage DOUBLE(4,2), 
	totalNetworkRamUsage DOUBLE(4,2), 
	totalCpu MEDIUMINT, 
	totalRam MEDIUMINT, 
	US BOOLEAN NOT NULL DEFAULT '1', 
	PRIMARY KEY (id));
	
CREATE TABLE IF NOT EXISTS nonPremiumJoinMessage (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS npcs (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS polls (
	id INT NOT NULL AUTO_INCREMENT, 
	enabled BIT(1), 
	question VARCHAR(256) NOT NULL, 
	answerA VARCHAR(256) NOT NULL, 
	answerB VARCHAR(256), 
	answerC VARCHAR(256), 
	answerD VARCHAR(256), 
	coinReward INT NOT NULL, 
	displayType INT DEFAULT 0 NOT NULL, 
	PRIMARY KEY (id));
	
CREATE TABLE IF NOT EXISTS rankedBans (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS rankBenefits (
	id INT NOT NULL AUTO_INCREMENT, 
	accountId INT, 
	benefit VARCHAR(100), 
	PRIMARY KEY (id), 
	FOREIGN KEY (accountId) REFERENCES accounts(id));
	
create or replace table reportresults (
	reportId int null,
	resultId int null,
	reason int null,
	closedTime int null);
	
CREATE TABLE IF NOT EXISTS reportTickets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));
	
CREATE TABLE IF NOT EXISTS salesAnnouncements (
	id INT NOT NULL AUTO_INCREMENT, 
	ranks VARCHAR(250), 
	message VARCHAR(256), 
	enabled BOOL, 
	clans BOOL, 
	PRIMARY KEY (id), 
	INDEX typeIndex (clans));

CREATE TABLE IF NOT EXISTS selectedgadgets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS selectedmodifiers (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS selectedMounts (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS selectedPets (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS ServerGroupStats (
	id INT NOT NULL AUTO_INCREMENT, 
	serverGroup VARCHAR(100), 
	updated LONG, 
	players INT, 
	maxPlayers INT, 
	totalNetworkCpuUsage DOUBLE(4,2), 
	totalNetworkRamUsage DOUBLE(4,2), 
	totalCpu MEDIUMINT, 
	totalRam MEDIUMINT, 
	US BOOLEAN NOT NULL DEFAULT '1', 
	PRIMARY KEY (id));

CREATE TABLE IF NOT EXISTS serverPassword (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS spawns (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS staffMotd (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS statEvents (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS stats (
    accountId INT NOT NULL,
    id INT NOT NULL,
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS statTypes (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS streamers (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS tasks (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS titanGiveaway (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS TournamentLB (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS tournaments (
    accountId INT NOT NULL,

    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS tournamentTeams (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS transactions (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS unicodereplacer (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

CREATE TABLE IF NOT EXISTS youtube (
    accountId INT NOT NULL,
    
    
    
    
    FOREIGN KEY (accountId) REFERENCES accounts(id));

create or replace table reporthandlers (
	reportId int null,
	handlerId int null,
	aborted tinyint(1) null);