updated database.sql
[NeonServV5.git] / database.sql
index 94b3d757a21afd2dcd293cf3346574afb40f7180..541523047bca57278258a99c985c11ec124e863f 100644 (file)
@@ -105,16 +105,6 @@ CREATE TABLE IF NOT EXISTS `channels` (
   `channel_greeting` varchar(512) NOT NULL,
   `channel_usergreeting` varchar(512) NOT NULL,
   `channel_userinfo` smallint(3) DEFAULT NULL,
-  `channel_scanstate` int(11) DEFAULT NULL,
-  `channel_scanexcept` smallint(3) DEFAULT NULL,
-  `channel_maxrepeat` smallint(5) DEFAULT NULL,
-  `channel_repeatreaction` tinyint(1) DEFAULT NULL,
-  `channel_maxflood` smallint(5) DEFAULT NULL,
-  `channel_floodtime` smallint(5) DEFAULT NULL,
-  `channel_floodreaction` tinyint(1) DEFAULT NULL,
-  `channel_maxjoin` smallint(5) DEFAULT NULL,
-  `channel_jointime` smallint(5) DEFAULT NULL,
-  `channel_joinreaction` tinyint(1) DEFAULT NULL,
   `channel_dynlimit` smallint(5) DEFAULT NULL,
   `channel_getinvite` smallint(3) DEFAULT NULL,
   `channel_topicmask` varchar(512) NOT NULL,
@@ -137,6 +127,31 @@ CREATE TABLE IF NOT EXISTS `channels` (
   `channel_registered` int(11) NOT NULL,
   `channel_registrator` int(11) NOT NULL,
   `channel_toys` tinyint(1) NOT NULL,
+  `channel_scanner` varchar(50) DEFAULT NULL,
+  `channel_spam_limit` smallint(3) DEFAULT NULL,
+  `channel_spam_reaction` tinyint(1) DEFAULT NULL,
+  `channel_spam_reaction_duration` mediumint(7) DEFAULT NULL,
+  `channel_spam_except` smallint(3) DEFAULT NULL,
+  `channel_flood_limit` smallint(3) DEFAULT NULL,
+  `channel_flood_time` smallint(3) DEFAULT NULL,
+  `channel_flood_reaction` tinyint(1) DEFAULT NULL,
+  `channel_flood_reaction_duration` mediumint(7) DEFAULT NULL,
+  `channel_flood_except` smallint(3) DEFAULT NULL,
+  `channel_join_limit` smallint(3) DEFAULT NULL,
+  `channel_join_time` smallint(3) DEFAULT NULL,
+  `channel_join_reaction` tinyint(1) DEFAULT NULL,
+  `channel_join_reaction_duration` mediumint(7) DEFAULT NULL,
+  `channel_join_except` smallint(3) DEFAULT NULL,
+  `channel_botnet_bantime` mediumint(7) DEFAULT NULL,
+  `channel_botnet_except` smallint(3) DEFAULT NULL,
+  `channel_caps_percent` tinyint(3) DEFAULT NULL,
+  `channel_caps_reaction` tinyint(1) DEFAULT NULL,
+  `channel_caps_reaction_duration` mediumint(7) DEFAULT NULL,
+  `channel_caps_except` smallint(3) DEFAULT NULL,
+  `channel_digit_percent` tinyint(3) DEFAULT NULL,
+  `channel_digit_reaction` tinyint(1) DEFAULT NULL,
+  `channel_digit_reaction_duration` mediumint(7) DEFAULT NULL,
+  `channel_digit_except` smallint(3) DEFAULT NULL,
   PRIMARY KEY (`channel_id`),
   UNIQUE KEY `channel_name` (`channel_name`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
@@ -269,10 +284,12 @@ CREATE TABLE IF NOT EXISTS `noinvite` (
 -- Tabellenstruktur für Tabelle `owner_history`
 --
 
+
 CREATE TABLE IF NOT EXISTS `owner_history` (
   `owner_history_id` int(11) NOT NULL AUTO_INCREMENT,
   `owner_history_cid` int(11) NOT NULL,
-  `owner_history_uid` int(11) NOT NULL,
+  `owner_history_to_uid` int(11) NOT NULL,
+  `owner_history_from_uid` int(11) NOT NULL,
   `owner_history_time` int(11) NOT NULL,
   PRIMARY KEY (`owner_history_id`),
   KEY `owner_history_cid` (`owner_history_cid`)
@@ -288,6 +305,7 @@ CREATE TABLE IF NOT EXISTS `users` (
   `user_id` int(11) NOT NULL AUTO_INCREMENT,
   `user_user` varchar(250) NOT NULL,
   `user_access` int(4) NOT NULL,
+  `user_rank` int(11) NOT NULL,
   `user_god` tinyint(1) NOT NULL,
   `user_lang` varchar(6) NOT NULL,
   `user_reply_privmsg` tinyint(1) NOT NULL,
@@ -297,6 +315,20 @@ CREATE TABLE IF NOT EXISTS `users` (
 
 -- --------------------------------------------------------
 
+--
+-- Tabellenstruktur für Tabelle `support_ranks`
+--
+
+CREATE TABLE `support_ranks` (
+`rank_id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+`rank_name` VARCHAR( 256 ) NOT NULL ,
+`rank_access` INT( 4 ) NOT NULL ,
+`rank_info` VARCHAR( 512 ) NOT NULL ,
+`rank_order` SMALLINT( 4 ) NOT NULL
+) ENGINE = MYISAM ;
+
+-- --------------------------------------------------------
+
 --
 -- Tabellenstruktur für Tabelle `version`
 --