-
-
Save matthewphewes/abc0e73805bd6cc60357 to your computer and use it in GitHub Desktop.
The table required to save/retrieve data from submitted score results. MySQL
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
delimiter $$ | |
CREATE TABLE `games_leaderboard` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`game` varchar(45) DEFAULT NULL, | |
`name` varchar(45) DEFAULT NULL, | |
`score` int(3) DEFAULT NULL, | |
`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
`user` int(11) DEFAULT NULL, | |
`session` varchar(45) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `session_UNIQUE` (`session`) | |
) ENGINE=MyISAM AUTO_INCREMENT=223 DEFAULT CHARSET=utf8$$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment