Add backup SQL files

Not needed due to patches done to plugin.localdatabase.php in the past.
This commit is contained in:
fanyx 2022-06-26 17:48:26 +02:00
parent 8cd2157816
commit f1b87b46b3
3 changed files with 125 additions and 0 deletions

60
xaseco/localdb/aseco.sql Normal file
View File

@ -0,0 +1,60 @@
-- Database: `aseco`
--
-- --------------------------------------------------------
--
-- Tablestructure for Table `challenges`
--
CREATE TABLE IF NOT EXISTS `challenges` (
`Id` mediumint(9) NOT NULL auto_increment,
`Uid` varchar(27) NOT NULL default '',
`Date` datetime NOT NULL default '1970-01-01 00:00:00',
`Name` varchar(100) NOT NULL default '',
`Author` varchar(30) NOT NULL default '',
`Environment` varchar(10) NOT NULL default '',
`BronzeTime` int(11) NOT NULL default 0,
`SilverTime` int(11) NOT NULL default 0,
`GoldTime` int(11) NOT NULL default 0,
`AuthorTime` int(11) NOT NULL default 0,
PRIMARY KEY (`Id`),
UNIQUE KEY `Uid` (`Uid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Tablestructure for Table `players`
--
CREATE TABLE IF NOT EXISTS `players` (
`Id` mediumint(9) NOT NULL auto_increment,
`Login` varchar(50) NOT NULL default '',
`Game` varchar(3) NOT NULL default '',
`NickName` varchar(100) NOT NULL default '',
`Nation` varchar(3) NOT NULL default '',
`UpdatedAt` datetime NOT NULL default '1970-01-01 00:00:00',
`Wins` mediumint(9) NOT NULL default 0,
`TimePlayed` int(10) unsigned NOT NULL default 0,
`TeamName` char(60) NOT NULL default '',
PRIMARY KEY (`Id`),
UNIQUE KEY `Login` (`Login`),
KEY `Game` (`Game`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Tablestructure for Table `records`
--
CREATE TABLE IF NOT EXISTS `records` (
`Id` int(11) NOT NULL auto_increment,
`ChallengeId` mediumint(9) NOT NULL default 0,
`PlayerId` mediumint(9) NOT NULL default 0,
`Score` int(11) NOT NULL default 0,
`Date` datetime NOT NULL default '1970-01-01 00:00:00',
`Checkpoints` text NOT NULL,
PRIMARY KEY (`Id`),
UNIQUE KEY `PlayerId` (`PlayerId`,`ChallengeId`),
KEY `ChallengeId` (`ChallengeId`)
) ENGINE=MyISAM;

18
xaseco/localdb/extra.sql Normal file
View File

@ -0,0 +1,18 @@
-- Database: `aseco`
--
-- --------------------------------------------------------
--
-- Tablestructure for Table `players_extra`
--
CREATE TABLE IF NOT EXISTS `players_extra` (
`playerID` mediumint(9) NOT NULL default 0,
`cps` smallint(3) NOT NULL default -1,
`dedicps` smallint(3) NOT NULL default -1,
`donations` mediumint(9) NOT NULL default 0,
`style` varchar(20) NOT NULL default '',
`panels` varchar(255) NOT NULL default '',
PRIMARY KEY (`playerID`),
KEY `donations` (`donations`)
) ENGINE=MyISAM;

47
xaseco/localdb/rasp.sql Normal file
View File

@ -0,0 +1,47 @@
-- Database: `aseco`
--
-- --------------------------------------------------------
--
-- Tablestructure for Table `rs_karma`
--
CREATE TABLE IF NOT EXISTS `rs_karma` (
`Id` int(11) NOT NULL auto_increment,
`ChallengeId` mediumint(9) NOT NULL default 0,
`PlayerId` mediumint(9) NOT NULL default 0,
`Score` tinyint(4) NOT NULL default 0,
PRIMARY KEY (`Id`),
UNIQUE KEY `PlayerId` (`PlayerId`,`ChallengeId`),
KEY `ChallengeId` (`ChallengeId`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Tablestructure for Table `rs_rank`
--
CREATE TABLE IF NOT EXISTS `rs_rank` (
`playerID` mediumint(9) NOT NULL default 0,
`avg` float NOT NULL default 0,
KEY `playerID` (`playerID`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- Tablestructure for Table `rs_times`
--
CREATE TABLE IF NOT EXISTS `rs_times` (
`ID` int(11) NOT NULL auto_increment,
`challengeID` mediumint(9) NOT NULL default 0,
`playerID` mediumint(9) NOT NULL default 0,
`score` int(11) NOT NULL default 0,
`date` int(10) unsigned NOT NULL default 0,
`checkpoints` text NOT NULL,
PRIMARY KEY (`ID`),
KEY `playerID` (`playerID`,`challengeID`),
KEY `challengeID` (`challengeID`)
) ENGINE=MyISAM;