forked from freem/OpenSMO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to merge the freem and SandonV forks
- Loading branch information
Showing
19 changed files
with
4,408 additions
and
2,229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
DROP TABLE IF EXISTS `bans`; | ||
CREATE TABLE `bans` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`IP` text COLLATE utf8_unicode_ci NOT NULL, | ||
`From` int(11) NOT NULL, | ||
`Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `connectionlog`; | ||
CREATE TABLE `connectionlog` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`userid` int(11) NOT NULL, | ||
`username` text COLLATE utf8_unicode_ci NOT NULL, | ||
`password` text COLLATE utf8_unicode_ci NOT NULL, | ||
`ip` text COLLATE utf8_unicode_ci NOT NULL, | ||
`result` enum('suceeded','failed') COLLATE utf8_unicode_ci NOT NULL, | ||
`clientversion` text COLLATE utf8_unicode_ci NOT NULL, | ||
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `fixedrooms`; | ||
CREATE TABLE `fixedrooms` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | ||
`Description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | ||
`Password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | ||
`Free` int(11) NOT NULL, | ||
`MOTD` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | ||
`Operators` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `news`; | ||
CREATE TABLE `news` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Author` int(11) NOT NULL, | ||
`Title` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Content` text COLLATE utf8_unicode_ci NOT NULL, | ||
`TimeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `rooms`; | ||
CREATE TABLE `rooms` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
`Description` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
`Owner` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, | ||
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `settings`; | ||
CREATE TABLE `settings` ( | ||
`Key` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Value` text COLLATE utf8_unicode_ci NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `songs`; | ||
CREATE TABLE `songs` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Name` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Artist` text COLLATE utf8_unicode_ci NOT NULL, | ||
`SubTitle` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Played` int(11) NOT NULL, | ||
`Time` int(11) NOT NULL, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `stats`; | ||
CREATE TABLE `stats` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`User` int(11) NOT NULL, | ||
`PlayerSettings` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Song` int(11) NOT NULL, | ||
`Room` int(11) NOT NULL, | ||
`Feet` int(11) NOT NULL, | ||
`Difficulty` int(11) NOT NULL, | ||
`Grade` int(11) NOT NULL, | ||
`Score` int(11) NOT NULL, | ||
`MaxCombo` int(11) NOT NULL, | ||
`Note_0` int(11) NOT NULL, | ||
`Note_1` int(11) NOT NULL, | ||
`Note_Mine` int(11) NOT NULL, | ||
`Note_Miss` int(11) NOT NULL, | ||
`Note_Barely` int(11) NOT NULL, | ||
`Note_Good` int(11) NOT NULL, | ||
`Note_Great` int(11) NOT NULL, | ||
`Note_Perfect` int(11) NOT NULL, | ||
`Note_Flawless` int(11) NOT NULL, | ||
`Note_NG` int(11) NOT NULL, | ||
`Note_Held` int(11) NOT NULL, | ||
`rate` int(11) NOT NULL, | ||
`Toasty` int(6) NOT NULL, | ||
`timing` int(8) NOT NULL, | ||
`TimeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
|
||
DROP TABLE IF EXISTS `users`; | ||
CREATE TABLE `users` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`Username` varchar(64) COLLATE utf8_unicode_ci NOT NULL, | ||
`Password` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Email` text COLLATE utf8_unicode_ci NOT NULL, | ||
`Rank` int(11) NOT NULL, | ||
`XP` int(11) NOT NULL, | ||
`Joined` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`), | ||
KEY `Username` (`Username`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
DROP TABLE IF EXISTS `friends`; | ||
CREATE TABLE `friends` ( | ||
`ID` int(11) NOT NULL AUTO_INCREMENT, | ||
`user` int(11) NOT NULL, | ||
`friend` int(11) NOT NULL, | ||
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.