mirror of
https://github.com/moparisthebest/Server-Status-Page
synced 2024-11-15 13:35:01 -05:00
New database script
This commit is contained in:
parent
6cf44f7782
commit
9683dc7928
137
database.sql
137
database.sql
@ -1,10 +1,5 @@
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `banned`
|
||||
--
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
DROP TABLE IF EXISTS `banned`;
|
||||
CREATE TABLE IF NOT EXISTS `banned` (
|
||||
@ -16,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `banned` (
|
||||
`pic_url` tinytext NOT NULL,
|
||||
`ip` varchar(30) NOT NULL,
|
||||
`port` smallint(5) unsigned NOT NULL,
|
||||
`version` smallint(3) unsigned NOT NULL,
|
||||
`version` varchar(80) NOT NULL,
|
||||
`time` int(10) unsigned NOT NULL,
|
||||
`info` text NOT NULL,
|
||||
`oncount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
@ -32,81 +27,6 @@ CREATE TABLE IF NOT EXISTS `banned` (
|
||||
KEY `online` (`online`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `servers`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `servers`;
|
||||
CREATE TABLE IF NOT EXISTS `servers` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uid` mediumint(8) unsigned NOT NULL,
|
||||
`uname` varchar(80) NOT NULL,
|
||||
`online` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
||||
`name` tinytext NOT NULL,
|
||||
`pic_url` tinytext NOT NULL,
|
||||
`ip` varchar(30) NOT NULL,
|
||||
`port` smallint(5) unsigned NOT NULL,
|
||||
`version` smallint(3) unsigned NOT NULL,
|
||||
`time` int(10) unsigned NOT NULL,
|
||||
`info` text NOT NULL,
|
||||
`oncount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`totalcount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`uptime` tinyint(3) unsigned NOT NULL DEFAULT '100',
|
||||
`ipaddress` varchar(15) NOT NULL,
|
||||
`sponsored` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`rs_name` tinytext NOT NULL,
|
||||
`rs_pass` tinytext NOT NULL,
|
||||
`vote` int(11) NOT NULL DEFAULT '0',
|
||||
`key` varchar(15) NOT NULL,
|
||||
`verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`added` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`banned` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`),
|
||||
KEY `online` (`online`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `toadd`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `toadd`;
|
||||
CREATE TABLE IF NOT EXISTS `toadd` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uid` mediumint(8) unsigned NOT NULL,
|
||||
`uname` varchar(80) NOT NULL,
|
||||
`online` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
||||
`name` tinytext NOT NULL,
|
||||
`pic_url` tinytext NOT NULL,
|
||||
`ip` varchar(30) NOT NULL,
|
||||
`port` smallint(5) unsigned NOT NULL,
|
||||
`version` smallint(3) unsigned NOT NULL,
|
||||
`time` int(10) unsigned NOT NULL,
|
||||
`info` text NOT NULL,
|
||||
`oncount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`totalcount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`uptime` tinyint(3) unsigned NOT NULL DEFAULT '100',
|
||||
`ipaddress` varchar(15) NOT NULL,
|
||||
`sponsored` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`rs_name` tinytext NOT NULL,
|
||||
`rs_pass` tinytext NOT NULL,
|
||||
`key` varchar(15) NOT NULL,
|
||||
`verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`),
|
||||
KEY `online` (`online`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `log_voted`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `log_voted`;
|
||||
CREATE TABLE IF NOT EXISTS `log_voted` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
@ -119,3 +39,56 @@ CREATE TABLE IF NOT EXISTS `log_voted` (
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `servers`;
|
||||
CREATE TABLE IF NOT EXISTS `servers` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uid` mediumint(8) unsigned NOT NULL,
|
||||
`uname` varchar(80) NOT NULL,
|
||||
`online` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
||||
`name` tinytext NOT NULL,
|
||||
`pic_url` tinytext NOT NULL,
|
||||
`ip` varchar(30) NOT NULL,
|
||||
`port` smallint(5) unsigned NOT NULL,
|
||||
`version` varchar(80) NOT NULL,
|
||||
`time` int(10) unsigned NOT NULL,
|
||||
`info` text NOT NULL,
|
||||
`oncount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`totalcount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`uptime` tinyint(3) unsigned NOT NULL DEFAULT '100',
|
||||
`ipaddress` varchar(15) NOT NULL,
|
||||
`sponsored` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`rs_name` tinytext NOT NULL,
|
||||
`rs_pass` tinytext NOT NULL,
|
||||
`vote` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`),
|
||||
KEY `online` (`online`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `toadd`;
|
||||
CREATE TABLE IF NOT EXISTS `toadd` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uid` mediumint(8) unsigned NOT NULL,
|
||||
`uname` varchar(80) NOT NULL,
|
||||
`online` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
||||
`name` tinytext NOT NULL,
|
||||
`pic_url` tinytext NOT NULL,
|
||||
`ip` varchar(30) NOT NULL,
|
||||
`port` smallint(5) unsigned NOT NULL,
|
||||
`version` varchar(80) NOT NULL,
|
||||
`time` int(10) unsigned NOT NULL,
|
||||
`info` text NOT NULL,
|
||||
`oncount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`totalcount` int(11) unsigned NOT NULL DEFAULT '1',
|
||||
`uptime` tinyint(3) unsigned NOT NULL DEFAULT '100',
|
||||
`ipaddress` varchar(15) NOT NULL,
|
||||
`sponsored` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||
`rs_name` tinytext NOT NULL,
|
||||
`rs_pass` tinytext NOT NULL,
|
||||
`key` varchar(15) NOT NULL,
|
||||
`verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `uid` (`uid`),
|
||||
KEY `online` (`online`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
Loading…
Reference in New Issue
Block a user