--
-- Host: localhost    Database: luniz_tl
-- ------------------------------------------------------


--
-- Current Database: `luniz_tl`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `luniz_tl` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `luniz_tl`;

--
-- Table structure for table `avps`
--

CREATE TABLE `avps` (
  `arg` varchar(20) NOT NULL DEFAULT '',
  `value_s` text NOT NULL,
  `value_i` int(11) NOT NULL DEFAULT '0',
  `value_u` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`arg`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `avps`
--

INSERT INTO `avps` VALUES ('lastcleantime','',0,1321129266);

--
-- Table structure for table `bans`
--

CREATE TABLE `bans` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `addedby` int(10) unsigned NOT NULL DEFAULT '0',
  `comment` varchar(255) NOT NULL DEFAULT '',
  `first` int(11) DEFAULT NULL,
  `last` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `first_last` (`first`,`last`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bans`
--


--
-- Table structure for table `blocks`
--

CREATE TABLE `blocks` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `blockid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `userfriend` (`userid`,`blockid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `blocks`
--


--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL DEFAULT '',
  `image` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` VALUES (26,'Movies - Music DVD','cat_movies_mdvd.gif'),(27,'Movies - VCD','cat_movies_vcd.gif'),(25,'Movies - HD-XviD','cat_movies_hdxvid.gif'),(24,'Games - XBOX360','cat_games_xbox360.gif'),(21,'Games - PC Rips','cat_games_pcrip.gif'),(22,'Appz - Misc','cat_apps_misc.gif'),(2,'EMU - NDS','cat_games_nds.gif'),(3,'Appz - MAC','cat_apps_mac.gif'),(8,'Appz - PDA','cat_apps_pda.gif'),(10,'Books - Mags','cat_misc.gif'),(11,'Episodes - Boxsets','cat_episodes_boxset.gif'),(13,'Games - GameCube','cat_games_gamecube.gif'),(14,'Games - PS3','cat_games_ps3.gif'),(15,'Games - PSP','cat_games_psp.gif'),(16,'Games - Wii','cat_games_wii.gif'),(18,'Games - XBOX','cat_games_xbox.gif'),(20,'Movies - DVD-R','cat_movies_dvdr.gif'),(19,'Movies - XviD','cat_movies_xvid.gif'),(23,'Anime/Cartoon','cat_anime.gif'),(17,'Games - PS2','cat_games_ps2.gif'),(12,'EMU - GBA','cat_games.gif'),(9,'XXX','cat_xxx_porn.gif'),(7,'Episodes - TV','cat_episodes_tveps_xvid.gif'),(6,'Music','cat_music_music.gif'),(5,'Movies - SVCD','cat_movies_svcd.gif'),(4,'Games - PC ISO','cat_games_pciso.gif'),(1,'Appz - PC ISO','cat_apps_pciso.gif');

--
-- Table structure for table `comments`
--

CREATE TABLE `comments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user` int(10) unsigned NOT NULL DEFAULT '0',
  `torrent` int(10) unsigned NOT NULL DEFAULT '0',
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `text` text NOT NULL,
  `ori_text` text NOT NULL,
  `editedby` int(10) unsigned NOT NULL DEFAULT '0',
  `editedat` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `user` (`user`),
  KEY `torrent` (`torrent`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comments`
--


--
-- Table structure for table `countries`
--

CREATE TABLE `countries` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL,
  `flagpic` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=71 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `countries`
--

INSERT INTO `countries` VALUES (1,'Sweden','sweden.gif'),(2,'United States of America','usa.gif'),(3,'Russia','russia.gif'),(4,'Finland','finland.gif'),(5,'Canada','canada.gif'),(6,'France','france.gif'),(7,'Germany','germany.gif'),(8,'China','china.gif'),(9,'Italy','italy.gif'),(10,'Denmark','denmark.gif'),(11,'Norway','norway.gif'),(12,'United Kingdom','uk.gif'),(13,'Ireland','ireland.gif'),(14,'Poland','poland.gif'),(15,'Netherlands','netherlands.gif'),(16,'Belgium','belgium.gif'),(17,'Japan','japan.gif'),(18,'Brazil','brazil.gif'),(19,'Argentina','argentina.gif'),(20,'Australia','australia.gif'),(21,'New Zealand','newzealand.gif'),(23,'Spain','spain.gif'),(24,'Portugal','portugal.gif'),(25,'Mexico','mexico.gif'),(26,'Singapore','singapore.gif'),(70,'India','india.gif'),(65,'Albania','albania.gif'),(29,'South Africa','southafrica.gif'),(30,'South Korea','southkorea.gif'),(31,'Jamaica','jamaica.gif'),(32,'Luxembourg','luxembourg.gif'),(33,'Hong Kong','hongkong.gif'),(34,'Belize','belize.gif'),(35,'Algeria','algeria.gif'),(36,'Angola','angola.gif'),(37,'Austria','austria.gif'),(38,'Yugoslavia','yugoslavia.gif'),(39,'Western Samoa','westernsamoa.gif'),(40,'Malaysia','malaysia.gif'),(41,'Dominican Republic','dominicanrep.gif'),(42,'Greece','greece.gif'),(43,'Guatemala','guatemala.gif'),(44,'Israel','israel.gif'),(45,'Pakistan','pakistan.gif'),(46,'Czech Republic','czechrep.gif'),(47,'Serbia','serbia.gif'),(48,'Seychelles','seychelles.gif'),(49,'Taiwan','taiwan.gif'),(50,'Puerto Rico','puertorico.gif'),(51,'Chile','chile.gif'),(52,'Cuba','cuba.gif'),(53,'Congo','congo.gif'),(54,'Afghanistan','afghanistan.gif'),(55,'Turkey','turkey.gif'),(56,'Uzbekistan','uzbekistan.gif'),(57,'Switzerland','switzerland.gif'),(58,'Kiribati','kiribati.gif'),(59,'Philippines','philippines.gif'),(60,'Burkina Faso','burkinafaso.gif'),(61,'Nigeria','nigeria.gif'),(62,'Iceland','iceland.gif'),(63,'Nauru','nauru.gif'),(64,'Slovenia','slovenia.gif'),(66,'Turkmenistan','turkmenistan.gif'),(67,'Bosnia Herzegovina','bosniaherzegovina.gif'),(68,'Andorra','andorra.gif'),(69,'Lithuania','lithuania.gif');

--
-- Table structure for table `files`
--

CREATE TABLE `files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `torrent` int(10) unsigned NOT NULL DEFAULT '0',
  `filename` varchar(255) NOT NULL DEFAULT '',
  `size` bigint(20) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `torrent` (`torrent`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `files`
--


--
-- Table structure for table `forums`
--

CREATE TABLE `forums` (
  `sort` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(60) NOT NULL DEFAULT '',
  `description` varchar(200) DEFAULT NULL,
  `minclassread` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `minclasswrite` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `postcount` int(10) unsigned NOT NULL DEFAULT '0',
  `topiccount` int(10) unsigned NOT NULL DEFAULT '0',
  `minclasscreate` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `forums`
--

INSERT INTO `forums` VALUES (0,1,'','',0,0,0,0,0);

--
-- Table structure for table `friends`
--

CREATE TABLE `friends` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `friendid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `userfriend` (`userid`,`friendid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `friends`
--

INSERT INTO `friends` VALUES (1,6,5);

--
-- Table structure for table `loginattempts`
--

CREATE TABLE `loginattempts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `ip` varchar(15) NOT NULL DEFAULT '',
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `banned` enum('yes','no') NOT NULL DEFAULT 'no',
  `attempts` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `loginattempts`
--


--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sender` int(10) unsigned NOT NULL DEFAULT '0',
  `receiver` int(10) unsigned NOT NULL DEFAULT '0',
  `added` datetime DEFAULT NULL,
  `msg` text,
  `unread` enum('yes','no') NOT NULL DEFAULT 'yes',
  `poster` bigint(20) unsigned NOT NULL DEFAULT '0',
  `location` enum('in','out','both') NOT NULL DEFAULT 'in',
  PRIMARY KEY (`id`),
  KEY `receiver` (`receiver`)
) ENGINE=MyISAM AUTO_INCREMENT=56 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `messages`
--

INSERT INTO `messages` VALUES (2,0,4,'2007-07-02 13:35:32','You have been promoted to \'Power User\' by Luniz2k1.','',0,'in'),(3,0,4,'2007-07-02 13:35:32','Your upload rights have been given back by Luniz2k1. You can upload torrents again.','',0,'in'),(4,0,4,'2007-07-02 13:36:28','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(5,0,7,'2007-07-02 17:32:03','You have been promoted to \'Power User\' by Luniz2k1.','',0,'in'),(6,0,7,'2007-07-02 17:32:18','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(7,0,7,'2007-07-02 17:32:42','You have been demoted to \'User\' by Luniz2k1.','',0,'in'),(8,0,7,'2007-07-02 17:32:58','You have been promoted to \'Power User\' by Luniz2k1.','',0,'in'),(9,0,7,'2007-07-02 17:33:08','You have been demoted to \'User\' by Luniz2k1.','',0,'in'),(16,0,6,'2007-07-02 18:04:10','You have been demoted to \'User\' by Luniz2k1.','yes',0,'in'),(17,0,12,'2007-07-02 19:57:26','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(12,0,7,'2007-07-02 17:34:24','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(18,0,13,'2007-07-02 20:01:53','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(19,0,12,'2007-07-02 20:05:58','Your upload rights have been given back by Luniz2k1. You can upload torrents again.','',0,'in'),(27,0,7,'2008-02-22 20:38:59','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(21,0,7,'2008-02-22 18:29:37','Your upload rights have been given back by Luniz2k1. You can upload torrents again.','',0,'in'),(26,0,16,'2008-02-22 20:38:50','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(25,0,16,'2008-02-22 20:38:50','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(28,0,7,'2008-02-22 20:38:59','Your upload rights have been removed by Luniz2k1, propably because of bad torrent .nfo or description.','',0,'in'),(29,0,12,'2008-02-22 20:39:12','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(30,0,12,'2008-02-22 20:39:12','Your upload rights have been removed by Luniz2k1, propably because of bad torrent .nfo or description.','',0,'in'),(33,0,17,'2008-02-23 22:18:01','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(34,0,17,'2008-02-23 22:18:01','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(38,0,18,'2008-02-25 12:48:46','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(39,0,18,'2008-02-25 12:48:46','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(41,0,19,'2008-04-16 22:34:59','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(42,0,19,'2008-04-16 22:34:59','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(47,0,23,'2008-12-07 18:58:20','You have been promoted to \'VIP\' by Luniz2k1.','yes',0,'in'),(48,0,23,'2008-12-07 18:58:20','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','yes',0,'in'),(49,0,21,'2008-12-07 18:59:26','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(50,0,21,'2008-12-07 18:59:26','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(51,0,22,'2008-12-07 18:59:36','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','yes',0,'in'),(52,0,24,'2009-08-29 21:41:38','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(53,0,24,'2009-08-29 21:41:38','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in'),(54,0,25,'2009-11-03 03:52:31','You have been promoted to \'VIP\' by Luniz2k1.','',0,'in'),(55,0,25,'2009-11-03 03:52:31','Your Posting rights have been removed by Luniz2k1, propably because of bad Atitdue or description.','',0,'in');

--
-- Table structure for table `news`
--

CREATE TABLE `news` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL DEFAULT '0',
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `body` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `added` (`added`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `news`
--

INSERT INTO `news` VALUES (11,5,'2008-02-25 01:49:20','I think I am done with mods for now.  In the process of adding torrents.');

--
-- Table structure for table `pollanswers`
--

CREATE TABLE `pollanswers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pollid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `selection` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `pollid` (`pollid`),
  KEY `selection` (`selection`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pollanswers`
--


--
-- Table structure for table `polls`
--

CREATE TABLE `polls` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `question` varchar(255) NOT NULL DEFAULT '',
  `option0` varchar(40) NOT NULL DEFAULT '',
  `option1` varchar(40) NOT NULL DEFAULT '',
  `option2` varchar(40) NOT NULL DEFAULT '',
  `option3` varchar(40) NOT NULL DEFAULT '',
  `option4` varchar(40) NOT NULL DEFAULT '',
  `option5` varchar(40) NOT NULL DEFAULT '',
  `option6` varchar(40) NOT NULL DEFAULT '',
  `option7` varchar(40) NOT NULL DEFAULT '',
  `option8` varchar(40) NOT NULL DEFAULT '',
  `option9` varchar(40) NOT NULL DEFAULT '',
  `option10` varchar(40) NOT NULL DEFAULT '',
  `option11` varchar(40) NOT NULL DEFAULT '',
  `option12` varchar(40) NOT NULL DEFAULT '',
  `option13` varchar(40) NOT NULL DEFAULT '',
  `option14` varchar(40) NOT NULL DEFAULT '',
  `option15` varchar(40) NOT NULL DEFAULT '',
  `option16` varchar(40) NOT NULL DEFAULT '',
  `option17` varchar(40) NOT NULL DEFAULT '',
  `option18` varchar(40) NOT NULL DEFAULT '',
  `option19` varchar(40) NOT NULL DEFAULT '',
  `sort` enum('yes','no') NOT NULL DEFAULT 'yes',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `polls`
--


--
-- Table structure for table `posts`
--

CREATE TABLE `posts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `topicid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `added` datetime DEFAULT NULL,
  `body` text,
  `editedby` int(10) unsigned NOT NULL DEFAULT '0',
  `editedat` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `topicid` (`topicid`),
  KEY `userid` (`userid`),
  FULLTEXT KEY `body` (`body`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `posts`
--


--
-- Table structure for table `readposts`
--

CREATE TABLE `readposts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `topicid` int(10) unsigned NOT NULL DEFAULT '0',
  `lastpostread` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`id`),
  KEY `topicid` (`topicid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `readposts`
--

INSERT INTO `readposts` VALUES (1,5,1,1),(2,15,1,1),(3,5,2,2);

--
-- Table structure for table `sitelog`
--

CREATE TABLE `sitelog` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `added` datetime DEFAULT NULL,
  `txt` text,
  PRIMARY KEY (`id`),
  KEY `added` (`added`)
) ENGINE=MyISAM AUTO_INCREMENT=513 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sitelog`
--

INSERT INTO `sitelog` VALUES (511,'2010-12-30 23:42:56','Torrent 234 (Microsoft.SQL.Server.2008.Enterprise.Standard.Express.MSDN.DVD-CRBS) was deleted by Luniz2k1 (Dead: 0 seeders, 0 leechers = 0 peers total)\n'),(512,'2010-12-30 23:43:10','Torrent 233 (VMWARE.VSPHERE.V4-MAGNiTUDE) was deleted by Luniz2k1 (Dead: 0 seeders, 0 leechers = 0 peers total)\n');

--
-- Table structure for table `stylesheets`
--

CREATE TABLE `stylesheets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uri` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(64) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `stylesheets`
--

INSERT INTO `stylesheets` VALUES (1,'default.css','(default)');

--
-- Table structure for table `topics`
--

CREATE TABLE `topics` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(40) DEFAULT NULL,
  `locked` enum('yes','no') NOT NULL DEFAULT 'no',
  `forumid` int(10) unsigned NOT NULL DEFAULT '0',
  `lastpost` int(10) unsigned NOT NULL DEFAULT '0',
  `sticky` enum('yes','no') NOT NULL DEFAULT 'no',
  `views` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `subject` (`subject`),
  KEY `lastpost` (`lastpost`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `topics`
--


--
-- Table structure for table `torrents`
--

CREATE TABLE `torrents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `info_hash` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `filename` varchar(255) NOT NULL DEFAULT '',
  `save_as` varchar(255) NOT NULL DEFAULT '',
  `search_text` text NOT NULL,
  `descr` text NOT NULL,
  `ori_descr` text NOT NULL,
  `category` int(10) unsigned NOT NULL DEFAULT '0',
  `size` bigint(20) unsigned NOT NULL DEFAULT '0',
  `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` enum('single','multi') NOT NULL DEFAULT 'single',
  `numfiles` int(10) unsigned NOT NULL DEFAULT '0',
  `comments` int(10) unsigned NOT NULL DEFAULT '0',
  `views` int(10) unsigned NOT NULL DEFAULT '0',
  `hits` int(10) unsigned NOT NULL DEFAULT '0',
  `times_completed` int(10) unsigned NOT NULL DEFAULT '0',
  `leechers` int(10) unsigned NOT NULL DEFAULT '0',
  `seeders` int(10) unsigned NOT NULL DEFAULT '0',
  `last_action` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `visible` enum('yes','no') NOT NULL DEFAULT 'yes',
  `banned` enum('yes','no') NOT NULL DEFAULT 'no',
  `owner` int(10) unsigned NOT NULL DEFAULT '0',
  `numratings` int(10) unsigned NOT NULL DEFAULT '0',
  `ratingsum` int(10) unsigned NOT NULL DEFAULT '0',
  `nfo` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `info_hash` (`info_hash`),
  KEY `owner` (`owner`),
  KEY `visible` (`visible`),
  KEY `category_visible` (`category`,`visible`),
  FULLTEXT KEY `ft_search` (`search_text`,`ori_descr`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `torrents`
--



