added basic halfop support
[NeonServV5.git] / database.sql
index 01f3a1f8c0db5c9a5eb3ef9155f0654305036963..01abde3eba806b9cc613daf5bfe3afe0a6386ec5 100644 (file)
@@ -35,6 +35,7 @@ CREATE TABLE IF NOT EXISTS `bots` (
   `automodes` varchar(20) NOT NULL,
   `botclass` int(10) NOT NULL,
   `textbot` tinyint(1) NOT NULL,
+  `queue` tinyint(1) NOT NULL,
   `defaulttrigger` varchar(10) NOT NULL,
   `max_channels` int(5) NOT NULL,
   `register_priority` int(2) NOT NULL,
@@ -51,13 +52,15 @@ CREATE TABLE IF NOT EXISTS `bots` (
 CREATE TABLE IF NOT EXISTS `bot_binds` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `botclass` int(11) NOT NULL,
+  `botid` int(11) NOT NULL,
   `command` varchar(60) NOT NULL,
   `function` varchar(60) NOT NULL,
   `parameters` varchar(100) NOT NULL,
   `chan_access` varchar(256) DEFAULT NULL,
   `global_access` int(3) DEFAULT NULL,
   `flags` tinyint(4) NOT NULL,
-  PRIMARY KEY (`id`)
+  PRIMARY KEY (`id`),
+  KEY `botid` (`botid`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
 
 -- --------------------------------------------------------
@@ -105,16 +108,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 +130,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;
@@ -201,11 +219,14 @@ CREATE TABLE IF NOT EXISTS `funcmd` (
 CREATE TABLE IF NOT EXISTS `fundata` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `cid` int(11) NOT NULL,
-  `uid` int(11) NOT NULL,
+  `user` varchar(50) NOT NULL,
   `name` varchar(50) NOT NULL,
   `value` text NOT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='neonserv v3';
+  PRIMARY KEY (`id`),
+  KEY `cid` (`cid`),
+  KEY `user` (`user`),
+  KEY `name` (`name`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='neonserv v3' AUTO_INCREMENT=1 ;
 
 -- --------------------------------------------------------
 
@@ -269,10 +290,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`)
@@ -321,3 +344,19 @@ CREATE TABLE IF NOT EXISTS `version` (
   PRIMARY KEY (`database_version`)
 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `donotregister`
+--
+
+CREATE TABLE `donotregister` (
+`dnr_id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+`dnr_target` VARCHAR( 256 ) NOT NULL ,
+`dnr_user` INT( 11 ) NOT NULL ,
+`dnr_timeout` INT( 20 ) NOT NULL ,
+`dnr_reason` TEXT NOT NULL ,
+UNIQUE (
+`dnr_target`
+)
+) ENGINE = MYISAM ;
\ No newline at end of file