Advertisement
Guest User

Database

a guest
Aug 28th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `cyrus_players` (
  2.   `id` int(11) unsigned NOT NULL,
  3.   `steam` varchar(30) NOT NULL,
  4.   `playerName` varchar(150) NOT NULL,
  5.   `last_connection` datetime NOT NULL,
  6.   `connections` int(10) unsigned NOT NULL,
  7.   `stats_kills` bigint(10) NOT NULL,
  8.   `stats_deaths` bigint(10) NOT NULL
  9. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  10.  
  11. ALTER TABLE `cyrus_players` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `steam` (`steam`), ADD KEY `last_seen` (`last_connection`);
  12.  
  13. ALTER TABLE `cyrus_players` MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement