Files
nexusphp/_db/dbstructure_v1.6.sql

2764 lines
319 KiB
MySQL
Raw Normal View History

2021-01-25 20:02:27 +08:00
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
2021-02-23 19:47:55 +08:00
-- Host: localhost Database: nexus_php_php8
2021-01-25 20:02:27 +08:00
-- ------------------------------------------------------
-- Server version 5.7.19-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
2021-02-23 19:47:55 +08:00
-- Current Database: `nexus_php_php8`
--
2021-02-23 19:47:55 +08:00
USE `nexus_php_php8`;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `adclicks`
--
DROP TABLE IF EXISTS `adclicks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `adclicks` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`adid` int(11) unsigned DEFAULT NULL,
`userid` int(11) unsigned DEFAULT NULL,
`added` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `adclicks`
--
LOCK TABLES `adclicks` WRITE;
/*!40000 ALTER TABLE `adclicks` DISABLE KEYS */;
/*!40000 ALTER TABLE `adclicks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `adminpanel`
--
DROP TABLE IF EXISTS `adminpanel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `adminpanel` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
`info` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `adminpanel`
--
LOCK TABLES `adminpanel` WRITE;
/*!40000 ALTER TABLE `adminpanel` DISABLE KEYS */;
2021-03-18 20:32:35 +08:00
INSERT INTO `adminpanel` VALUES (1,'Add user','adduser.php','Create new user account'),(3,'Reset Users Password','reset.php','Rest lost Passwords'),(4,'Mass PM','staffmess.php','Send PM to all users'),(6,'Poll overview','polloverview.php','View poll votes'),(7,'Warned users','warned.php','See all warned users on tracker'),(8,'FreeLeech','freeleech.php','Set ALL Torrents At Special State.'),(9,'FAQ Management','faqmanage.php','Edit/Add/Delete FAQ Page'),(10,'Rules Management','modrules.php','Edit/Add/Delete RULES Page'),(11,'Category Manage','catmanage.php','Manage torrents categories at your site'),(12,'Custom Field Manage','fields.php','Manage custom fields');
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `adminpanel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `advertisements`
--
DROP TABLE IF EXISTS `advertisements`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `advertisements` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`enabled` tinyint(1) NOT NULL DEFAULT '0',
`type` enum('bbcodes','xhtml','text','image','flash') NOT NULL,
`position` enum('header','footer','belownav','belowsearchbox','torrentdetail','comment','interoverforums','forumpost','popup') NOT NULL,
`displayorder` tinyint(3) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
`parameters` text NOT NULL,
`code` text NOT NULL,
`starttime` datetime NOT NULL,
`endtime` datetime NOT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `advertisements`
--
LOCK TABLES `advertisements` WRITE;
/*!40000 ALTER TABLE `advertisements` DISABLE KEYS */;
/*!40000 ALTER TABLE `advertisements` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `agent_allowed_exception`
--
DROP TABLE IF EXISTS `agent_allowed_exception`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agent_allowed_exception` (
2021-02-01 20:19:39 +08:00
`family_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`name` varchar(100) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
`peer_id` varchar(20) NOT NULL DEFAULT '',
`agent` varchar(100) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`comment` varchar(200) NOT NULL DEFAULT '',
KEY `family_id` (`family_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `agent_allowed_exception`
--
LOCK TABLES `agent_allowed_exception` WRITE;
/*!40000 ALTER TABLE `agent_allowed_exception` DISABLE KEYS */;
INSERT INTO `agent_allowed_exception` VALUES (16,'uTorrent 1.80B (Build 6838)','-UT180B-','uTorrent/180B(6838)','buggy build that always seeding bad request');
/*!40000 ALTER TABLE `agent_allowed_exception` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `agent_allowed_family`
--
DROP TABLE IF EXISTS `agent_allowed_family`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agent_allowed_family` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`family` varchar(50) NOT NULL DEFAULT '',
`start_name` varchar(100) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
`peer_id_pattern` varchar(200) NOT NULL DEFAULT '',
`peer_id_match_num` tinyint(3) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`peer_id_matchtype` enum('dec','hex') NOT NULL DEFAULT 'dec',
2021-02-01 20:19:39 +08:00
`peer_id_start` varchar(20) NOT NULL DEFAULT '',
`agent_pattern` varchar(200) NOT NULL DEFAULT '',
`agent_match_num` tinyint(3) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`agent_matchtype` enum('dec','hex') NOT NULL DEFAULT 'dec',
2021-02-01 20:19:39 +08:00
`agent_start` varchar(100) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`exception` enum('yes','no') NOT NULL DEFAULT 'no',
`allowhttps` enum('yes','no') NOT NULL DEFAULT 'no',
`comment` varchar(200) NOT NULL DEFAULT '',
`hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `agent_allowed_family`
--
LOCK TABLES `agent_allowed_family` WRITE;
/*!40000 ALTER TABLE `agent_allowed_family` DISABLE KEYS */;
2021-03-17 18:46:40 +08:00
INSERT INTO `agent_allowed_family` VALUES (1,'Azureus 2.5.0.4','Azureus 2.5.0.4','/^-AZ2504-/',0,'dec','-AZ2504-','/^Azureus 2.5.0.4/',0,'dec','Azureus 2.5.0.4','no','yes','',0),(2,'uTorrent 1.6.1','uTorrent 1.6.1','/^-UT1610-/',0,'dec','-UT1610-','/^uTorrent\\/1610/',0,'dec','uTorrent/1610','no','no','',0),(3,'Bittorrent 6.x','Bittorrent 6.0.1','/^M6-([0-9])-([0-9])--/',2,'dec','M6-0-1--','/^BitTorrent\\/6([0-9])([0-9])([0-9])/',3,'dec','BitTorrent/6010','no','yes','',0),(4,'Deluge 0.x','Deluge 0.5.8.9','/^-DE0([0-9])([0-9])([0-9])-/',3,'dec','-DE0589-','/^Deluge 0\\.([0-9])\\.([0-9])\\.([0-9])/',3,'dec','Deluge 0.5.8.9','no','yes','',0),(5,'Transmission1.x','Transmission 1.06 (build 5136)','/^-TR1([0-9])([0-9])([0-9])-/',3,'dec','-TR1060-','/^Transmission\\/1\\.([0-9])([0-9])/',3,'dec','Transmission/1.06','no','yes','',0),(6,'RTorrent 0.x(with libtorrent 0.x)','rTorrent 0.8.0 (with libtorrent 0.12.0)','/^-lt([0-9A-E])([0-9A-E])([0-9A-E])([0-9A-E])-/',4,'hex','-lt0C00-','/^rtorrent\\/0\\.([0-9])\\.([0-9])\\/0\\.([1-9][0-9]*)\\.(0|[1-9][0-9]*)/',4,'dec','rtorrent/0.8.0/0.12.0','no','yes','',0),(7,'Rufus 0.x','Rufus 0.6.9','',0,'dec','','/^Rufus\\/0\\.([0-9])\\.([0-9])/',2,'dec','Rufus/0.6.9','no','no','',0),(8,'Azureus 3.x','Azureus 3.0.5.0','/^-AZ3([0-9])([0-9])([0-9])-/',3,'dec','-AZ3050-','/^Azureus 3\\.([0-9])\\.([0-9])\\.([0-9])/',3,'dec','Azureus 3.0.5.0','no','yes','',0),(9,'uTorrent 1.7.x','uTorrent 1.7.5','/^-UT17([0-9])([0-9])-/',2,'dec','-UT1750-','/^uTorrent\\/17([0-9])([0-9])/',2,'dec','uTorrent/1750','no','yes','',0),(10,'BitRocket 0.x','BitRocket 0.3.3(32)','/^-BR0([0-9])([1-9][0-9]*)-/',2,'dec','-BR0332-','/^BitRocket\\/0\\.([0-9])\\.([0-9])\\(([1-9][0-9]*)\\) libtorrent\\/0\\.([1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)/',6,'dec','BitRocket/0.3.3(32) libtorrent/0.13.0.0','no','yes','',0),(11,'MLDonkey 2.9.x','MLDonkey 2.9.2','/^-ML2\\.9\\.([0-9])-/',1,'dec','-ML2.9.2-','/^MLDonkey\\/2\\.9\\.([0-9])/',1,'dec','MLDonkey/2.9.2','no','yes','',0),(12,'uTorrent 1.8.x','uTorrent 1.8.0','/^-UT18([0-9])([0-9])-/',2,'dec','-UT1800-','/^uTorrent\\/18([0-9])([0-9])/',2,'dec','uTorrent/1800','no','yes','',0),(13,'Azureus 4.x','Vuze 4.0.0.2','/^-AZ4([0-9])([0-9])([0-9])-/',3,'dec','-AZ4002-','/^Azureus 4\\.([0-9])\\.([0-9])\\.([0-9])/',3,'dec','Azureus 4.0.0.2','no','yes','',0),(14,'SymTorrent','','',0,'dec','','/^SymTorrent/',0,'dec','SymTorrent','no','no','',0),(15,'Deluge 1.x','Deluge 1.1.6','/^-DE1([0-9])([0-9])([0-9])-/',3,'dec','-DE1160-','/^Deluge 1\\.([0-9])\\.([0-9])/',2,'dec','Deluge 1.1.6','no','yes','',0),(16,'uTorrent 1.8xB','uTorrent 1.80 Beta (build 9137)','/^-UT18([0-9])B-/',1,'dec','-UT180B-','/^uTorrent\\/18([0-9])B\\(([1-9][0-9]*)\\)/',2,'dec','uTorrent/180B(9137)','no','yes','',0),(17,'uTorrent 2.x.x','uTorrent 2.0(build 17624)','/^-UT2([0-9])([0-9])([0-9])-/',3,'dec','-UT2000-','/^uTorrent\\/2([0-9])([0-9])([0-9])/',3,'dec','uTorrent/2000','no','yes','',0),(18,'Transmission2.x','Transmission 2.0','/^-TR2([0-9])([0-9])([0-9])-/',3,'dec','-TR2000-','/^Transmission\\/2\\.([0-9])([0-9])/',3,'dec','Transmission/2.00','no','yes','',0),(19,'uTorrent 3.x','uTorrent/3000','/^-UT3([0-9])([0-9])([0-9])-/',3,'dec','-UT3000-','/^uTorrent\\/3([0-9])([0-9])([0-9])/',3,'dec','uTorrent/3000','no','yes','',0),(20,'uTorrent 3.x','uTorrent','',0,'dec','-UT355W-','/^uTorrent/',0,'dec','uTorrent','no','yes','',0),(21,'Transmission3.x','Transmission 3.0','/^-TR3([0-9])([0-9])([0-9])-/',3,'dec','-TR3000-','/^Transmission\\/3\\.([0-9])([0-9])/',3,'dec','Transmission/3.00','no','yes','',0),(22,'Deluge 2.x','Deluge 2.0.0','/^-DE2([0-9])([0-9])/',2,'dec','-DE200','/^Deluge\\/2\\.([0-9])\\.([0-9])/',2,'dec','Deluge/2.0.0','no','yes','',0),(23,'qBittorrent 4.x','qBittorrent 4.0.0','/^-qB4([0-9])([0-9])/',2,'dec','-qB400','/^qBittorrent\\/4\\.([0-9])\\.([0-9])/',2,'dec','qBittorrent/4.0.0','no','yes','',0),(24,'Deluge 1.x','Deluge 1.0.0','/^-DE1([0-9])/',1,'dec','-DE10','/^Deluge 1\\.([0-9])\\.([0-9])/',2,'dec','Deluge 1.0.0','no','yes','',0);
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `agent_allowed_family` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `allowedemails`
--
DROP TABLE IF EXISTS `allowedemails`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `allowedemails` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`value` mediumtext NOT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `allowedemails`
--
LOCK TABLES `allowedemails` WRITE;
/*!40000 ALTER TABLE `allowedemails` DISABLE KEYS */;
INSERT INTO `allowedemails` VALUES (1,'@st.zju.edu.cn @gstu.zju.edu.cn @fa.zju.edu.cn @zuaa.zju.edu.cn');
/*!40000 ALTER TABLE `allowedemails` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachments`
--
DROP TABLE IF EXISTS `attachments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`width` smallint(6) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`filename` varchar(255) NOT NULL DEFAULT '',
`dlkey` char(32) NOT NULL,
`filetype` varchar(50) NOT NULL DEFAULT '',
`filesize` bigint(20) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`location` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`downloads` mediumint(8) NOT NULL DEFAULT '0',
`isimage` tinyint(1) unsigned NOT NULL DEFAULT '0',
`thumb` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `pid` (`userid`,`id`),
2021-03-17 18:46:40 +08:00
KEY `dateline` (`added`,`isimage`,`downloads`),
KEY `idx_delkey` (`dlkey`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachments`
--
LOCK TABLES `attachments` WRITE;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
UNLOCK TABLES;
2021-02-23 19:47:55 +08:00
--
-- Table structure for table `attendance`
--
DROP TABLE IF EXISTS `attendance`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attendance` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
2021-03-18 20:32:35 +08:00
`uid` int(10) unsigned NOT NULL DEFAULT '0',
2021-02-23 19:47:55 +08:00
`added` datetime NOT NULL,
2021-03-18 20:32:35 +08:00
`points` int(10) unsigned NOT NULL DEFAULT '0',
2021-02-23 19:47:55 +08:00
`days` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `idx_uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attendance`
--
LOCK TABLES `attendance` WRITE;
/*!40000 ALTER TABLE `attendance` DISABLE KEYS */;
/*!40000 ALTER TABLE `attendance` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `audiocodecs`
--
DROP TABLE IF EXISTS `audiocodecs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `audiocodecs` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
`image` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-02-01 20:19:39 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `audiocodecs`
--
LOCK TABLES `audiocodecs` WRITE;
/*!40000 ALTER TABLE `audiocodecs` DISABLE KEYS */;
INSERT INTO `audiocodecs` VALUES (1,'FLAC','',0),(2,'APE','',0),(3,'DTS','',0),(4,'MP3','',0),(5,'OGG','',0),(6,'AAC','',0),(7,'Other','',0);
/*!40000 ALTER TABLE `audiocodecs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `avps`
--
DROP TABLE IF EXISTS `avps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `avps`
--
LOCK TABLES `avps` WRITE;
/*!40000 ALTER TABLE `avps` DISABLE KEYS */;
/*!40000 ALTER TABLE `avps` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bannedemails`
--
DROP TABLE IF EXISTS `bannedemails`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bannedemails` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`value` mediumtext NOT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bannedemails`
--
LOCK TABLES `bannedemails` WRITE;
/*!40000 ALTER TABLE `bannedemails` DISABLE KEYS */;
INSERT INTO `bannedemails` VALUES (1,'@test.com');
/*!40000 ALTER TABLE `bannedemails` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bans`
--
DROP TABLE IF EXISTS `bans`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bans` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`added` datetime DEFAULT NULL,
`addedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
`first` bigint(20) NOT NULL DEFAULT '0',
`last` bigint(20) NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `first_last` (`first`,`last`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bans`
--
LOCK TABLES `bans` WRITE;
/*!40000 ALTER TABLE `bans` DISABLE KEYS */;
/*!40000 ALTER TABLE `bans` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bitbucket`
--
DROP TABLE IF EXISTS `bitbucket`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bitbucket` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`owner` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`name` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`added` datetime DEFAULT NULL,
`public` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bitbucket`
--
LOCK TABLES `bitbucket` WRITE;
/*!40000 ALTER TABLE `bitbucket` DISABLE KEYS */;
/*!40000 ALTER TABLE `bitbucket` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `blocks`
--
DROP TABLE IF EXISTS `blocks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blocks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`blockid` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `userfriend` (`userid`,`blockid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `blocks`
--
LOCK TABLES `blocks` WRITE;
/*!40000 ALTER TABLE `blocks` DISABLE KEYS */;
/*!40000 ALTER TABLE `blocks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bookmarks`
--
DROP TABLE IF EXISTS `bookmarks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bookmarks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`torrentid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `userid_torrentid` (`userid`,`torrentid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bookmarks`
--
LOCK TABLES `bookmarks` WRITE;
/*!40000 ALTER TABLE `bookmarks` DISABLE KEYS */;
/*!40000 ALTER TABLE `bookmarks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `categories`
--
DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`mode` tinyint(3) unsigned NOT NULL DEFAULT '1',
`class_name` varchar(255) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
`image` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` smallint(5) unsigned NOT NULL DEFAULT '0',
2021-02-26 14:11:28 +08:00
`icon_id` int(11) NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `mode_sort` (`mode`,`sort_index`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `categories`
--
LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
2021-02-26 14:11:28 +08:00
INSERT INTO `categories` VALUES (401,4,'c_movies','Movies','catsprites.png',0,1),(402,4,'c_tvseries','TV Series','catsprites.png',3,1),(403,4,'c_tvshows','TV Shows','catsprites.png',4,1),(404,4,'c_doc','Documentaries','catsprites.png',1,1),(405,4,'c_anime','Animations','catsprites.png',2,1),(406,4,'c_mv','Music Videos','catsprites.png',5,1),(407,4,'c_sports','Sports','catsprites.png',6,1),(408,4,'c_hqaudio','HQ Audio','catsprites.png',8,1),(409,4,'c_misc','Misc','catsprites.png',7,1);
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `caticons`
--
DROP TABLE IF EXISTS `caticons`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `caticons` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
`folder` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`cssfile` varchar(255) NOT NULL DEFAULT '',
`multilang` enum('yes','no') NOT NULL DEFAULT 'no',
`secondicon` enum('yes','no') NOT NULL DEFAULT 'no',
`designer` varchar(50) NOT NULL DEFAULT '',
`comment` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `caticons`
--
LOCK TABLES `caticons` WRITE;
/*!40000 ALTER TABLE `caticons` DISABLE KEYS */;
INSERT INTO `caticons` VALUES (1,'SceneTorrents mod','scenetorrents/','pic/category/chd/scenetorrents/catsprites.css','yes','no','NexusPHP','Modified from SceneTorrents');
/*!40000 ALTER TABLE `caticons` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cheaters`
--
DROP TABLE IF EXISTS `cheaters`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cheaters` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`added` datetime DEFAULT NULL,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`torrentid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`uploaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`downloaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`anctime` mediumint(8) unsigned NOT NULL DEFAULT '0',
`seeders` mediumint(5) unsigned NOT NULL DEFAULT '0',
`leechers` mediumint(8) unsigned NOT NULL DEFAULT '0',
`hit` tinyint(3) unsigned NOT NULL DEFAULT '0',
`dealtby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`dealtwith` tinyint(1) NOT NULL DEFAULT '0',
`comment` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cheaters`
--
LOCK TABLES `cheaters` WRITE;
/*!40000 ALTER TABLE `cheaters` DISABLE KEYS */;
/*!40000 ALTER TABLE `cheaters` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `chronicle`
--
DROP TABLE IF EXISTS `chronicle`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chronicle` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`txt` text,
PRIMARY KEY (`id`),
KEY `added` (`added`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `chronicle`
--
LOCK TABLES `chronicle` WRITE;
/*!40000 ALTER TABLE `chronicle` DISABLE KEYS */;
/*!40000 ALTER TABLE `chronicle` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `codecs`
--
DROP TABLE IF EXISTS `codecs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codecs` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `codecs`
--
LOCK TABLES `codecs` WRITE;
/*!40000 ALTER TABLE `codecs` DISABLE KEYS */;
INSERT INTO `codecs` VALUES (1,'H.264',0),(2,'VC-1',0),(3,'Xvid',0),(4,'MPEG-2',0),(5,'Other',0);
/*!40000 ALTER TABLE `codecs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user` mediumint(8) unsigned NOT NULL DEFAULT '0',
`torrent` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`text` text,
`ori_text` text,
`editedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`editdate` datetime DEFAULT NULL,
`offer` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-02-23 19:47:55 +08:00
`request` int(11) NOT NULL DEFAULT '0',
`anonymous` enum('yes','no') NOT NULL DEFAULT 'no',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `user` (`user`),
KEY `torrent_id` (`torrent`,`id`),
KEY `offer_id` (`offer`,`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `comments`
--
LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `countries`
--
DROP TABLE IF EXISTS `countries`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `countries` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(50) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`flagpic` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `countries`
--
LOCK TABLES `countries` WRITE;
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
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.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'),(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'),(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'),(71,'Netherlands Antilles','nethantilles.gif'),(72,'Ukraine','ukraine.gif'),(73,'Venezuela','venezuela.gif'),(74,'Hungary','hungary.gif'),(75,'Romania','romania.gif'),(76,'Vanuatu','vanuatu.gif'),(77,'Vietnam','vietnam.gif'),(78,'Trinidad & Tobago','trinidadandtobago.gif'),(79,'Honduras','honduras.gif'),(80,'Kyrgyzstan','kyrgyzstan.gif'),(81,'Ecuador','ecuador.gif'),(82,'Bahamas','bahamas.gif'),(83,'Peru','peru.gif'),(84,'Cambodia','cambodia.gif'),(85,'Barbados','barbados.gif'),(86,'Bangladesh','bangladesh.gif'),(87,'Laos','laos.gif'),(88,'Uruguay','uruguay.gif'),(89,'Antigua Barbuda','antiguabarbuda.gif'),(90,'Paraguay','paraguay.gif'),(93,'Thailand','thailand.gif'),(92,'Union of Soviet Socialist Republics','ussr.gif'),(94,'Senegal','senegal.gif'),(95,'Togo','togo.gif'),(96,'North Korea','northkorea.gif'),(97,'Croatia','croatia.gif'),(98,'Estonia','estonia.gif'),(99,'Colombia','colombia.gif'),(100,'Lebanon','lebanon.gif'),(101,'Latvia','latvia.gif'),(102,'Costa Rica','costarica.gif'),(103,'Egypt','egypt.gif'),(104,'Bulgaria','bulgaria.gif'),(105,'Isla de Muerte','jollyroger.gif'),(107,'Pirates','jollyroger.gif');
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `downloadspeed`
--
DROP TABLE IF EXISTS `downloadspeed`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `downloadspeed` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(50) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `downloadspeed`
--
LOCK TABLES `downloadspeed` WRITE;
/*!40000 ALTER TABLE `downloadspeed` DISABLE KEYS */;
INSERT INTO `downloadspeed` VALUES (1,'64kbps'),(2,'128kbps'),(3,'256kbps'),(4,'512kbps'),(5,'768kbps'),(6,'1Mbps'),(7,'1.5Mbps'),(8,'2Mbps'),(9,'3Mbps'),(10,'4Mbps'),(11,'5Mbps'),(12,'6Mbps'),(13,'7Mbps'),(14,'8Mbps'),(15,'9Mbps'),(16,'10Mbps'),(17,'48Mbps'),(18,'100Mbit');
/*!40000 ALTER TABLE `downloadspeed` ENABLE KEYS */;
UNLOCK TABLES;
2021-04-30 01:27:29 +08:00
--
-- Table structure for table `exam_progress`
--
DROP TABLE IF EXISTS `exam_progress`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `exam_progress` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`exam_user_id` int(11) NOT NULL,
`exam_id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`torrent_id` int(11) NOT NULL,
`index` int(11) NOT NULL,
`value` bigint(20) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `exam_progress_created_at_index` (`created_at`),
KEY `exam_progress_exam_user_id_index` (`exam_user_id`),
KEY `exam_progress_exam_id_index` (`exam_id`),
KEY `exam_progress_uid_index` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `exam_progress`
--
LOCK TABLES `exam_progress` WRITE;
/*!40000 ALTER TABLE `exam_progress` DISABLE KEYS */;
/*!40000 ALTER TABLE `exam_progress` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `exam_users`
--
DROP TABLE IF EXISTS `exam_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `exam_users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`exam_id` int(11) NOT NULL,
`status` int(11) NOT NULL DEFAULT '0',
`begin` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
`progress` text COLLATE utf8mb4_unicode_ci,
`is_done` tinyint(4) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `exam_users_uid_index` (`uid`),
KEY `exam_users_exam_id_index` (`exam_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `exam_users`
--
LOCK TABLES `exam_users` WRITE;
/*!40000 ALTER TABLE `exam_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `exam_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `exams`
--
DROP TABLE IF EXISTS `exams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `exams` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`begin` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
2021-05-06 13:01:17 +08:00
`duration` int(11) NOT NULL DEFAULT '0',
2021-04-30 01:27:29 +08:00
`filters` text COLLATE utf8mb4_unicode_ci,
`indexes` text COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '0',
2021-05-02 17:32:25 +08:00
`is_discovered` tinyint(4) NOT NULL DEFAULT '0',
2021-04-30 01:27:29 +08:00
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `exams`
--
LOCK TABLES `exams` WRITE;
/*!40000 ALTER TABLE `exams` DISABLE KEYS */;
/*!40000 ALTER TABLE `exams` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `failed_jobs`
--
DROP TABLE IF EXISTS `failed_jobs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
2021-06-04 21:04:12 +08:00
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`(191))
2021-04-30 01:27:29 +08:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `failed_jobs`
--
LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `faq`
--
DROP TABLE IF EXISTS `faq`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `faq` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`link_id` smallint(5) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`lang_id` smallint(5) unsigned NOT NULL DEFAULT '6',
`type` enum('categ','item') NOT NULL DEFAULT 'item',
`question` text NOT NULL,
`answer` text NOT NULL,
`flag` tinyint(3) unsigned NOT NULL DEFAULT '1',
`categ` smallint(5) unsigned NOT NULL DEFAULT '0',
`order` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `faq`
--
LOCK TABLES `faq` WRITE;
/*!40000 ALTER TABLE `faq` DISABLE KEYS */;
2025-04-19 02:06:51 +07:00
INSERT INTO `faq` VALUES (1,1,25,'categ','站点信息','',1,0,1),(2,2,25,'categ','用户信息','',1,0,2),(3,3,25,'categ','数据统计','',1,0,3),(4,4,25,'categ','发布','',1,0,4),(5,5,25,'categ','下载','',1,0,5),(6,6,25,'categ','我该怎样提升下载速度?','',1,0,6),(7,7,25,'categ','我的网络提供商ISP使用了透明代理。我应该怎么做','',1,0,7),(8,8,25,'categ','为什么我连不上?难道我被网站屏蔽了?','',1,0,8),(9,9,25,'categ','如果从这里找不到我的问题的解答,我该怎么办?','',1,0,9),(10,10,25,'item','到底什么是BTBittorrent我要如何才能弄到这类程序','参看<a class=\"faqlink\" href=\"http://www.btfaq.com/\">Brian的BitTorrent FAQ及指导</a>。',1,1,1),(11,11,25,'item','我们捐出来的钱上哪儿去了?','所有捐助的钱用于维护服务器的费用。',1,1,2),(12,12,25,'item','我从哪里可以搞到源代码的拷贝?','这个Tracker使用的是NexusPHP的代码。代码获取事宜请看<a class=\"faqlink\" href=\"aboutnexus.php\">这里</a>。<br />\r\nNexusPHP的代码是根据TBSource的源码改写的。TBDev网站Tracker源代码以及社区论坛都在这里<a class=\"faqlink\" href=\"http://www.tbdev.net/\">TBDev.net</a>。',1,1,3),(13,13,25,'item','我注册了一个账号但是却没有收到验证邮件!','这很有可能是Tracker所在的服务器网络出现了问题。你可以填写<a href=\"confirm_resend.php\" class=\"faqlink\">这个表格</a>让服务器重发验证邮件。<br />\r\n通常没有得到确认的注册帐户会在24小时后被删除所以你可以在第二天重试。需要注意的是如果你第一次没有收到确认信第二次有很大的可能仍然无法收到确认信所以换一个E-mail地址是一个不错的主意。',1,2,1),(14,14,25,'item','我忘记了我的用户名/密码了,能帮我找回来么?','请填写<a class=\"faqlink\" href=\"recover.php\">这个表单</a>,我们将把登录详情发还给你。',1,2,2),(15,15,25,'item','我可以给我的账号改个名字么?','我们并不支持给账号改名。',1,2,3),(16,16,25,'item','你可以删除一个(已确认的)账号么?','我们一般不提供该类服务,所以不要请求删除任何一个被你邀请的帐号。',1,2,4),(17,17,25,'item','那么什么是我的分享率Ratio','就在页面功能分区的下面。<br />\r\n<br />\r\n<img src=\"pic/ratio.png\" alt=\"ratio\" />\r\n<br />\r\n<br />\r\n区分你的整体分享率和独立分享率是很重要的。整体分享率关注的是自从你加入站点以来账号的整体上传与下载量。而独立分享率则针对每一个你正在下载或做种的文件。\r\n<br />\r\n<br />\r\n你可能看到两种符号来代替数字\"Inf.\"这个是无限Infinity的缩写意思是你的下载量为0字节而上传量则是任意一个非零的值(上传量/下载量=无穷大)\"---\"应该被视为“不可用”这说明了你的下载量和上传量都是0字节。(上传量/下载量=0/0 这是一个不确定的量)。\r\n',1,2,5),(18,18,25,'item','为什么我的IP地址显示在我的个人信息页面上','只有你自己和网站Moderator及以上的管理员可以看到你的IP地址和Email。普通用户是看不到这些信息的。',1,2,6),(21,21,25,'item','为什么我的“可连接”是“否”?(以及为什么我需要关注这个问题?)','Tracker服务器认为你在防火墙后或者在NAT桥接后并且无法接收其他Peer的连接请求。\r\n<br />\r\n<br />\r\n这意味着其它的大批Peer无法连接到你只能由你连接到他们。更糟糕的情况是如果两个Peer都处于这样的状态他们将完全无法连接到对方。这对于整体速度有着非常不利的影响。\r\n<br />\r\n<br />\r\n对于这个问题有以下解决方式对于防火墙打开用于接收连接的端口即你在BT客户端中定义的端口对于NAT你需要配置NAT服务器使用Basic NAT方式
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `faq` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `files`
--
DROP TABLE IF EXISTS `files`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `files` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`torrent` mediumint(8) 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`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `files`
--
LOCK TABLES `files` WRITE;
/*!40000 ALTER TABLE `files` DISABLE KEYS */;
/*!40000 ALTER TABLE `files` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `forummods`
--
DROP TABLE IF EXISTS `forummods`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `forummods` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`forumid` smallint(5) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `forumid` (`forumid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `forummods`
--
LOCK TABLES `forummods` WRITE;
/*!40000 ALTER TABLE `forummods` DISABLE KEYS */;
/*!40000 ALTER TABLE `forummods` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `forums`
--
DROP TABLE IF EXISTS `forums`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `forums` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`sort` smallint(5) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`name` varchar(60) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`description` varchar(255) NOT NULL DEFAULT '',
`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',
`forid` smallint(5) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `forums`
--
LOCK TABLES `forums` WRITE;
/*!40000 ALTER TABLE `forums` DISABLE KEYS */;
/*!40000 ALTER TABLE `forums` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `friends`
--
DROP TABLE IF EXISTS `friends`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `friends` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`friendid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
UNIQUE KEY `userfriend` (`userid`,`friendid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `friends`
--
LOCK TABLES `friends` WRITE;
/*!40000 ALTER TABLE `friends` DISABLE KEYS */;
/*!40000 ALTER TABLE `friends` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `fun`
--
DROP TABLE IF EXISTS `fun`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fun` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`body` text,
`title` varchar(255) NOT NULL DEFAULT '',
`status` enum('normal','dull','notfunny','funny','veryfunny','banned') NOT NULL DEFAULT 'normal',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `fun`
--
LOCK TABLES `fun` WRITE;
/*!40000 ALTER TABLE `fun` DISABLE KEYS */;
/*!40000 ALTER TABLE `fun` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `funds`
--
DROP TABLE IF EXISTS `funds`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `funds` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`usd` decimal(8,2) NOT NULL DEFAULT '0.00',
`cny` decimal(8,2) NOT NULL DEFAULT '0.00',
2021-02-01 20:19:39 +08:00
`user` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`added` datetime DEFAULT NULL,
`memo` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `funds`
--
LOCK TABLES `funds` WRITE;
/*!40000 ALTER TABLE `funds` DISABLE KEYS */;
/*!40000 ALTER TABLE `funds` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `funvotes`
--
DROP TABLE IF EXISTS `funvotes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `funvotes` (
`funid` mediumint(8) unsigned NOT NULL,
`userid` mediumint(8) unsigned NOT NULL,
`added` datetime DEFAULT NULL,
`vote` enum('fun','dull') NOT NULL DEFAULT 'fun',
PRIMARY KEY (`funid`,`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `funvotes`
--
LOCK TABLES `funvotes` WRITE;
/*!40000 ALTER TABLE `funvotes` DISABLE KEYS */;
/*!40000 ALTER TABLE `funvotes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invites`
--
DROP TABLE IF EXISTS `invites`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invites` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`inviter` mediumint(8) unsigned NOT NULL DEFAULT '0',
`invitee` varchar(80) NOT NULL DEFAULT '',
`hash` char(32) NOT NULL,
`time_invited` datetime DEFAULT NULL,
2021-05-11 11:22:58 +08:00
`valid` tinyint(4) NOT NULL DEFAULT '1',
`invitee_register_uid` int(11) DEFAULT NULL,
`invitee_register_email` varchar(255) DEFAULT NULL,
`invitee_register_username` varchar(255) DEFAULT NULL,
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `hash` (`hash`(3))
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invites`
--
LOCK TABLES `invites` WRITE;
/*!40000 ALTER TABLE `invites` DISABLE KEYS */;
/*!40000 ALTER TABLE `invites` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `iplog`
--
DROP TABLE IF EXISTS `iplog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iplog` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`ip` varchar(64) NOT NULL DEFAULT '',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`access` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userid` (`userid`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `iplog`
--
LOCK TABLES `iplog` WRITE;
/*!40000 ALTER TABLE `iplog` DISABLE KEYS */;
/*!40000 ALTER TABLE `iplog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `isp`
--
DROP TABLE IF EXISTS `isp`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `isp` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `isp`
--
LOCK TABLES `isp` WRITE;
/*!40000 ALTER TABLE `isp` DISABLE KEYS */;
INSERT INTO `isp` VALUES (1,'中国电信'),(2,'中国网通'),(3,'中国铁通'),(4,'中国移动'),(5,'中国联通'),(6,'中国教育网'),(20,'Other');
/*!40000 ALTER TABLE `isp` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `language`
--
DROP TABLE IF EXISTS `language`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `language` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`lang_name` varchar(50) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`flagpic` varchar(255) NOT NULL DEFAULT '',
`sub_lang` tinyint(3) unsigned NOT NULL DEFAULT '1',
`rule_lang` tinyint(3) unsigned NOT NULL DEFAULT '0',
`site_lang` tinyint(3) unsigned NOT NULL DEFAULT '0',
`site_lang_folder` varchar(255) NOT NULL DEFAULT '',
`trans_state` enum('up-to-date','outdate','incomplete','need-new','unavailable') NOT NULL DEFAULT 'unavailable',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `language`
--
LOCK TABLES `language` WRITE;
/*!40000 ALTER TABLE `language` DISABLE KEYS */;
INSERT INTO `language` VALUES (1,'Bulgarian','bulgaria.gif',1,0,0,'','unavailable'),(2,'Croatian','croatia.gif',1,0,0,'','unavailable'),(3,'Czech','czechrep.gif',1,0,0,'','unavailable'),(4,'Danish','denmark.gif',1,0,0,'','unavailable'),(5,'Dutch','netherlands.gif',1,0,0,'','unavailable'),(6,'English','uk.gif',1,1,1,'en','up-to-date'),(7,'Estonian','estonia.gif',1,0,0,'','unavailable'),(8,'Finnish','finland.gif',1,0,0,'','unavailable'),(9,'French','france.gif',1,0,0,'','unavailable'),(10,'German','germany.gif',1,0,0,'','unavailable'),(11,'Greek','greece.gif',1,0,0,'','unavailable'),(12,'Hebrew','israel.gif',1,0,0,'','unavailable'),(13,'Hungarian','hungary.gif',1,0,0,'','unavailable'),(14,'Italian','italy.gif',1,0,0,'','unavailable'),(15,'日本語','japan.gif',1,0,0,'','unavailable'),(16,'한국어','southkorea.gif',1,0,0,'ko','unavailable'),(17,'Norwegian','norway.gif',1,0,0,'','unavailable'),(18,'Other','jollyroger.gif',1,0,0,'','unavailable'),(19,'Polish','poland.gif',1,0,0,'','unavailable'),(20,'Portuguese','portugal.gif',1,0,0,'','unavailable'),(21,'Romanian','romania.gif',1,0,0,'','unavailable'),(22,'Russian','russia.gif',1,0,0,'','unavailable'),(23,'Serbian','serbia.gif',1,0,0,'','unavailable'),(24,'Slovak','slovakia.gif',1,0,0,'','unavailable'),(25,'简体中文','china.gif',1,1,1,'chs','up-to-date'),(26,'Spanish','spain.gif',1,0,0,'','unavailable'),(27,'Swedish','sweden.gif',1,0,0,'','unavailable'),(28,'繁體中文','hongkong.gif',1,1,1,'cht','up-to-date'),(29,'Turkish','turkey.gif',1,0,0,'','unavailable'),(30,'Slovenian','slovenia.gif',1,0,0,'','unavailable'),(31,'Thai','thailand.gif',1,0,0,'th','unavailable');
/*!40000 ALTER TABLE `language` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `links`
--
DROP TABLE IF EXISTS `links`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `links` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`title` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `links`
--
LOCK TABLES `links` WRITE;
/*!40000 ALTER TABLE `links` DISABLE KEYS */;
/*!40000 ALTER TABLE `links` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `locations`
--
DROP TABLE IF EXISTS `locations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `locations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
2021-02-01 20:19:39 +08:00
`location_main` varchar(200) NOT NULL DEFAULT '',
`location_sub` varchar(200) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`flagpic` varchar(50) DEFAULT NULL,
2021-02-01 20:19:39 +08:00
`start_ip` varchar(20) NOT NULL DEFAULT '',
`end_ip` varchar(20) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`theory_upspeed` int(10) unsigned NOT NULL DEFAULT '10',
`practical_upspeed` int(10) unsigned NOT NULL DEFAULT '10',
`theory_downspeed` int(10) unsigned NOT NULL DEFAULT '10',
`practical_downspeed` int(10) unsigned NOT NULL DEFAULT '10',
`hit` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `locations`
--
LOCK TABLES `locations` WRITE;
/*!40000 ALTER TABLE `locations` DISABLE KEYS */;
/*!40000 ALTER TABLE `locations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `loginattempts`
--
DROP TABLE IF EXISTS `loginattempts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `loginattempts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(64) NOT NULL DEFAULT '',
`added` datetime DEFAULT NULL,
`banned` enum('yes','no') NOT NULL DEFAULT 'no',
`attempts` smallint(5) unsigned NOT NULL DEFAULT '0',
`type` enum('login','recover') NOT NULL DEFAULT 'login',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `loginattempts`
--
LOCK TABLES `loginattempts` WRITE;
/*!40000 ALTER TABLE `loginattempts` DISABLE KEYS */;
/*!40000 ALTER TABLE `loginattempts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `media`
--
DROP TABLE IF EXISTS `media`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `media` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `media`
--
LOCK TABLES `media` WRITE;
/*!40000 ALTER TABLE `media` DISABLE KEYS */;
INSERT INTO `media` VALUES (1,'Blu-ray',0),(2,'HD DVD',1),(4,'MiniBD',4),(5,'HDTV',5),(6,'DVDR',6),(7,'Encode',3),(3,'Remux',2),(8,'CD',7),(9,'Track',9);
/*!40000 ALTER TABLE `media` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `messages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sender` mediumint(8) unsigned NOT NULL DEFAULT '0',
`receiver` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`subject` varchar(128) NOT NULL DEFAULT '',
`msg` text,
`unread` enum('yes','no') NOT NULL DEFAULT 'yes',
`location` smallint(6) NOT NULL DEFAULT '1',
`saved` enum('no','yes') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
KEY `receiver` (`receiver`),
KEY `sender` (`sender`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `messages`
--
LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
UNLOCK TABLES;
2021-04-30 01:27:29 +08:00
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `migrations`
--
LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `modpanel`
--
DROP TABLE IF EXISTS `modpanel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `modpanel` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
`info` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `modpanel`
--
LOCK TABLES `modpanel` WRITE;
/*!40000 ALTER TABLE `modpanel` DISABLE KEYS */;
INSERT INTO `modpanel` VALUES (1,'Abnormal Upload Speed Detector','cheaters.php','See cheaters'),(2,'Duplicate IP Check','ipcheck.php','Check for Duplicate IP Users'),(3,'All Clients (currently)','allagents.php','Show All Clients (currently downloading/uploading/seeding)'),(4,'Ad management','admanage.php','Manage ads at your site'),(5,'Uploaders','uploaders.php','See uploaders stats'),(6,'Stats','stats.php','Tracker Stats'),(7,'IP Test','testip.php','Test if IP is banned'),(8,'Add Bonus Points','amountbonus.php','Add Bonus Points to one or All Users.'),(9,'Clear cache','clearcache.php','Clear cache of memcached');
/*!40000 ALTER TABLE `modpanel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `news`
--
DROP TABLE IF EXISTS `news`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`body` text,
`title` varchar(255) NOT NULL DEFAULT '',
`notify` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
KEY `added` (`added`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `news`
--
LOCK TABLES `news` WRITE;
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `offers`
--
DROP TABLE IF EXISTS `offers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `offers` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`name` varchar(225) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`descr` text,
`added` datetime DEFAULT NULL,
`allowedtime` datetime DEFAULT NULL,
`yeah` smallint(5) unsigned NOT NULL DEFAULT '0',
`against` smallint(5) unsigned NOT NULL DEFAULT '0',
`category` smallint(5) unsigned NOT NULL DEFAULT '0',
`comments` mediumint(8) unsigned NOT NULL DEFAULT '0',
`allowed` enum('allowed','pending','denied') NOT NULL DEFAULT 'pending',
PRIMARY KEY (`id`),
KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `offers`
--
LOCK TABLES `offers` WRITE;
/*!40000 ALTER TABLE `offers` DISABLE KEYS */;
/*!40000 ALTER TABLE `offers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `offervotes`
--
DROP TABLE IF EXISTS `offervotes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `offervotes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`offerid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`vote` enum('yeah','against') NOT NULL DEFAULT 'yeah',
PRIMARY KEY (`id`),
KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `offervotes`
--
LOCK TABLES `offervotes` WRITE;
/*!40000 ALTER TABLE `offervotes` DISABLE KEYS */;
/*!40000 ALTER TABLE `offervotes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `overforums`
--
DROP TABLE IF EXISTS `overforums`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `overforums` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(60) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`description` varchar(255) NOT NULL DEFAULT '',
`minclassview` tinyint(3) unsigned NOT NULL DEFAULT '0',
`sort` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `overforums`
--
LOCK TABLES `overforums` WRITE;
/*!40000 ALTER TABLE `overforums` DISABLE KEYS */;
/*!40000 ALTER TABLE `overforums` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `peers`
--
DROP TABLE IF EXISTS `peers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `peers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`torrent` mediumint(8) unsigned NOT NULL DEFAULT '0',
`peer_id` binary(20) NOT NULL,
`ip` varchar(64) NOT NULL DEFAULT '',
`port` smallint(5) unsigned NOT NULL DEFAULT '0',
`uploaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`downloaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`to_go` bigint(20) unsigned NOT NULL DEFAULT '0',
`seeder` enum('yes','no') NOT NULL DEFAULT 'no',
`started` datetime DEFAULT NULL,
`last_action` datetime DEFAULT NULL,
`prev_action` datetime DEFAULT NULL,
`connectable` enum('yes','no') NOT NULL DEFAULT 'yes',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`agent` varchar(60) NOT NULL DEFAULT '',
`finishedat` int(10) unsigned NOT NULL DEFAULT '0',
`downloadoffset` bigint(20) unsigned NOT NULL DEFAULT '0',
`uploadoffset` bigint(20) unsigned NOT NULL DEFAULT '0',
`passkey` char(32) NOT NULL DEFAULT '',
2021-02-01 20:19:39 +08:00
PRIMARY KEY (`id`) USING HASH,
KEY `userid` (`userid`) USING HASH,
KEY `torrent` (`torrent`) USING HASH
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `peers`
--
LOCK TABLES `peers` WRITE;
/*!40000 ALTER TABLE `peers` DISABLE KEYS */;
/*!40000 ALTER TABLE `peers` ENABLE KEYS */;
UNLOCK TABLES;
2021-04-30 01:27:29 +08:00
--
-- Table structure for table `personal_access_tokens`
--
DROP TABLE IF EXISTS `personal_access_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) unsigned NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `personal_access_tokens`
--
LOCK TABLES `personal_access_tokens` WRITE;
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `pmboxes`
--
DROP TABLE IF EXISTS `pmboxes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pmboxes` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`boxnumber` tinyint(3) unsigned NOT NULL DEFAULT '2',
2021-02-01 20:19:39 +08:00
`name` varchar(15) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pmboxes`
--
LOCK TABLES `pmboxes` WRITE;
/*!40000 ALTER TABLE `pmboxes` DISABLE KEYS */;
/*!40000 ALTER TABLE `pmboxes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pollanswers`
--
DROP TABLE IF EXISTS `pollanswers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pollanswers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`pollid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`selection` tinyint(3) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
KEY `pollid` (`pollid`),
KEY `selection` (`selection`),
KEY `userid` (`userid`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pollanswers`
--
LOCK TABLES `pollanswers` WRITE;
/*!40000 ALTER TABLE `pollanswers` DISABLE KEYS */;
/*!40000 ALTER TABLE `pollanswers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `polls`
--
DROP TABLE IF EXISTS `polls`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `polls` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`added` datetime DEFAULT NULL,
`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 '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `polls`
--
LOCK TABLES `polls` WRITE;
/*!40000 ALTER TABLE `polls` DISABLE KEYS */;
/*!40000 ALTER TABLE `polls` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `posts`
--
DROP TABLE IF EXISTS `posts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `posts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`topicid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`body` text,
`ori_body` text,
`editedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`editdate` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `topicid_id` (`topicid`,`id`),
KEY `added` (`added`),
FULLTEXT KEY `body` (`body`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `posts`
--
LOCK TABLES `posts` WRITE;
/*!40000 ALTER TABLE `posts` DISABLE KEYS */;
/*!40000 ALTER TABLE `posts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `processings`
--
DROP TABLE IF EXISTS `processings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `processings` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `processings`
--
LOCK TABLES `processings` WRITE;
/*!40000 ALTER TABLE `processings` DISABLE KEYS */;
INSERT INTO `processings` VALUES (1,'Raw',0),(2,'Encode',0);
/*!40000 ALTER TABLE `processings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `prolinkclicks`
--
DROP TABLE IF EXISTS `prolinkclicks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prolinkclicks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ip` varchar(64) NOT NULL DEFAULT '',
`added` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `prolinkclicks`
--
LOCK TABLES `prolinkclicks` WRITE;
/*!40000 ALTER TABLE `prolinkclicks` DISABLE KEYS */;
/*!40000 ALTER TABLE `prolinkclicks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `readposts`
--
DROP TABLE IF EXISTS `readposts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `readposts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`topicid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lastpostread` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `topicid` (`topicid`),
KEY `userid` (`userid`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `readposts`
--
LOCK TABLES `readposts` WRITE;
/*!40000 ALTER TABLE `readposts` DISABLE KEYS */;
/*!40000 ALTER TABLE `readposts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `regimages`
--
DROP TABLE IF EXISTS `regimages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `regimages` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`imagehash` varchar(32) NOT NULL DEFAULT '',
`imagestring` varchar(8) NOT NULL DEFAULT '',
`dateline` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `regimages`
--
LOCK TABLES `regimages` WRITE;
/*!40000 ALTER TABLE `regimages` DISABLE KEYS */;
/*!40000 ALTER TABLE `regimages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reports`
--
DROP TABLE IF EXISTS `reports`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reports` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`addedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`reportid` int(10) unsigned NOT NULL DEFAULT '0',
`type` enum('torrent','user','offer','request','post','comment','subtitle') NOT NULL DEFAULT 'torrent',
`reason` varchar(255) NOT NULL DEFAULT '',
`dealtby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`dealtwith` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reports`
--
LOCK TABLES `reports` WRITE;
/*!40000 ALTER TABLE `reports` DISABLE KEYS */;
/*!40000 ALTER TABLE `reports` ENABLE KEYS */;
UNLOCK TABLES;
2021-02-23 19:47:55 +08:00
--
-- Table structure for table `requests`
--
DROP TABLE IF EXISTS `requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`request` varchar(225) CHARACTER SET gbk NOT NULL DEFAULT '',
`descr` text CHARACTER SET gbk NOT NULL,
`comments` int(11) unsigned NOT NULL DEFAULT '0',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
`cat` int(10) unsigned NOT NULL DEFAULT '0',
`filledby` int(10) unsigned NOT NULL DEFAULT '0',
`torrentid` int(10) unsigned NOT NULL DEFAULT '0',
`finish` enum('yes','no') CHARACTER SET gbk NOT NULL DEFAULT 'no',
`amount` int(10) NOT NULL DEFAULT '0',
2021-03-18 20:32:35 +08:00
`ori_descr` varchar(255) NOT NULL DEFAULT '',
`ori_amount` int(10) NOT NULL DEFAULT '0',
2021-02-23 19:47:55 +08:00
`added` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `finish, userid` (`finish`,`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `requests`
--
LOCK TABLES `requests` WRITE;
/*!40000 ALTER TABLE `requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `resreq`
--
DROP TABLE IF EXISTS `resreq`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `resreq` (
`id` int(10) NOT NULL AUTO_INCREMENT,
2021-03-18 20:32:35 +08:00
`reqid` int(10) NOT NULL DEFAULT '0',
`torrentid` int(10) NOT NULL DEFAULT '0',
2021-02-23 19:47:55 +08:00
`chosen` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
KEY `reqid` (`reqid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `resreq`
--
LOCK TABLES `resreq` WRITE;
/*!40000 ALTER TABLE `resreq` DISABLE KEYS */;
/*!40000 ALTER TABLE `resreq` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `rules`
--
DROP TABLE IF EXISTS `rules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rules` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`lang_id` smallint(5) unsigned NOT NULL DEFAULT '6',
2021-02-01 20:19:39 +08:00
`title` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`text` text,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rules`
--
LOCK TABLES `rules` WRITE;
/*!40000 ALTER TABLE `rules` DISABLE KEYS */;
INSERT INTO `rules` VALUES (1,25,'总则 - <font class=striking>不遵守这些将导致帐号被封!</font>','[*]请不要做管理员明文禁止的事情。\r\n[*]不允许发送垃圾信息。\r\n[*]账号保留规则:\r\n 1.[b]Veteran User[/b]及以上等级用户会永远保留;\r\n 2.[b]Elite User[/b]及以上等级用户封存账号(在[url=usercp.php?action=personal]控制面板[/url])后不会被删除帐号;\r\n 3.封存账号的用户连续400天不登录将被删除帐号\r\n 4.未封存账号的用户连续150天不登录将被删除帐号\r\n 5.没有流量的用户(即上传/下载数据都为0连续100天不登录将被删除帐号。\r\n[*]一切作弊的帐号会被封,请勿心存侥幸。\r\n[*]注册多个[site]账号的用户将被禁止。\r\n[*]不要把本站的种子文件上传到其他Tracker(具体请看[url=faq.php#38][b]常见问题[/b][/url])\r\n[*]第一次在论坛或服务器中的捣乱行为会受到警告,第二次您将永远无缘[site] 。'),(2,25,'下载规则 - <font class=striking>违规将会失去下载权限!</font>','[*]过低的分享率会导致严重的后果,包括禁止帐号。详见[url=faq.php#22]常见问题[/url]。\r\n[*]种子促销规则:\r\n [*]随机促销(种子上传后系统自动随机设为促销):\r\n [*]10%的概率成为“[color=#7c7ff6][b]50%下载[/b][/color]”;\r\n [*]5%的概率成为“[color=#f0cc00][b]免费[/b][/color]”;\r\n [*]5%的概率成为“[color=#aaaaaa][b]2x上传[/b][/color]”;\r\n [*]3%的概率成为“[color=#7ad6ea][b]50%下载&2x上传[/b][/color]”;\r\n [*]1%的概率成为“[color=#99cc66][b]免费&2x上传[/b][/color]”。\r\n [*]文件总体积大于20GB的种子将自动成为“[color=#f0cc00][b]免费[/b][/color]”。\r\n [*]Blu-ray Disk, HD DVD原盘将成为“[color=#f0cc00][b]免费[/b][/color]”。\r\n [*]电视剧等每季的第一集将成为“[color=#f0cc00][b]免费[/b][/color]”。\r\n [*]关注度高的种子将被设置为促销(由管理员定夺)。\r\n [*]促销时限:\r\n [*]除了“[color=#aaaaaa][b]2x上传[/b][/color]”以外其余类型的促销限时7天自种子发布时起\r\n [*]“[color=#aaaaaa][b]2x上传[/b][/color]”无时限。\r\n [*]所有种子在发布1个月后将自动永久成为“[color=#aaaaaa][b]2x上传[/b][/color]”。 \r\n [*]我们也将不定期开启全站[color=#f0cc00][b]免费[/b][/color],届时尽情狂欢吧~:mml: :mml: :mml:\r\n[*]你只能使用允许的BT客户端下载本站资源。详见[url=faq.php#29]常见问题[/url]。'),(4,25,'论坛总则 - <font class=striking>请遵循以下的守则,违规会受到警告!</font>','[*]禁止攻击、挑动他人的言辞。\r\n[*]禁止恶意灌水或发布垃圾信息。请勿在论坛非Water Jar版块发布无意义主题或回复如纯表情等。\r\n[*]不要为了获取魔力值而大肆灌水。\r\n[*]禁止在标题或正文使用脏话。\r\n[*]不要讨论禁忌、政治敏感或当地法律禁止的话题。\r\n[*]禁止任何基于种族、国家、民族、肤色、宗教、性别、年龄、性取向、身体或精神障碍的歧视性言辞。违规将导致账号永久性禁用。\r\n[*]禁止挖坟(所有挖坟帖都要被删掉)。\r\n[*]禁止重复发帖。\r\n[*]请确保问题发布在相对应的板块。\r\n[*]365天无新回复的主题将被系统自动锁定.\r\n'),(6,25,'头像使用规定 - <font class=striking>请尽量遵守以下规则</font>','[*]允许的格式为.gif .jpg 和.png。\r\n[*]图片大小不能超过150KB为了统一系统会调整头像宽度到150像素大小浏览器会把图片调整成合适的大小小图片将被拉伸而过大的图片只会浪费带宽和CPU) 。\r\n[*]请不要使用可能引起别人反感的
/*!40000 ALTER TABLE `rules` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `schools`
--
DROP TABLE IF EXISTS `schools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `schools` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `schools`
--
LOCK TABLES `schools` WRITE;
/*!40000 ALTER TABLE `schools` DISABLE KEYS */;
INSERT INTO `schools` VALUES (1,'南京农业大学'),(2,'中山大学'),(3,'中国石油大学'),(4,'云南大学'),(5,'河海大学'),(6,'南开大学'),(7,'兰州大学'),(8,'合肥工业大学'),(9,'上海大学'),(10,'安徽大学'),(11,'中国海洋大学'),(12,'复旦大学'),(13,'西北大学'),(14,'郑州大学'),(15,'四川大学'),(16,'华中科技大学'),(17,'天津大学'),(18,'山东大学'),(19,'中央民族大学'),(20,'苏州大学'),(21,'重庆大学'),(22,'东北农业大学'),(23,'北京工业大学'),(24,'湖南师范大学'),(25,'东北大学'),(26,'电子科技大学'),(27,'西安电子科技大学'),(28,'北京化工大学'),(29,'南京航空航天大学'),(30,'南京理工大学'),(31,'西北工业大学'),(32,'天津医科大学'),(33,'北京林业大学'),(34,'华南师范大学'),(35,'浙江大学'),(36,'长安大学'),(37,'武汉理工大学'),(38,'河北工业大学'),(39,'南京师范大学'),(40,'中国农业大学'),(41,'厦门大学'),(42,'第二军医大学'),(43,'北京理工大学'),(44,'北京大学'),(45,'上海外国语大学'),(46,'北京科技大学'),(47,'西北农林科技大学'),(48,'中南大学'),(49,'华南理工大学'),(50,'武汉大学'),(51,'福州大学'),(52,'同济大学'),(53,'中国传媒大学'),(54,'湖南大学'),(55,'上海财经大学'),(56,'国防科学技术大学'),(57,'吉林大学'),(58,'大连理工大学'),(59,'中国人民大学'),(60,'上海交通大学'),(61,'西安交通大学'),(62,'江南大学'),(63,'南京大学'),(64,'南昌大学'),(65,'太原理工大学'),(66,'中国地质大学'),(67,'清华大学'),(68,'广西大学'),(69,'中国矿业大学'),(70,'四川农业大学'),(71,'东北师范大学'),(72,'哈尔滨工业大学'),(73,'北京航空航天大学'),(74,'北京交通大学'),(75,'西南交通大学'),(76,'中国科学技术大学'),(77,'北京外国语大学'),(78,'北京邮电大学'),(79,'西安建筑科技大学'),(80,'新疆大学'),(81,'东南大学'),(82,'对外经济贸易大学'),(83,'北京中医药大学'),(84,'暨南大学'),(85,'北京语言大学'),(86,'华中师范大学'),(87,'北京师范大学'),(88,'哈尔滨工程大学'),(89,'内蒙古大学'),(90,'东华大学'),(91,'解放军信息工程大学'),(92,'上海交通大学医学院 '),(93,'华东理工大学'),(94,'第四军医大学'),(95,'大连海事大学'),(96,'华东师范大学'),(97,'辽宁大学'),(98,'深圳大学'),(99,'中央音乐学院'),(100,'中国协和医科大学');
/*!40000 ALTER TABLE `schools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `searchbox`
--
DROP TABLE IF EXISTS `searchbox`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `searchbox` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`showsubcat` tinyint(1) NOT NULL DEFAULT '0',
`showsource` tinyint(1) NOT NULL DEFAULT '0',
`showmedium` tinyint(1) NOT NULL DEFAULT '0',
`showcodec` tinyint(1) NOT NULL DEFAULT '0',
`showstandard` tinyint(1) NOT NULL DEFAULT '0',
`showprocessing` tinyint(1) NOT NULL DEFAULT '0',
`showteam` tinyint(1) NOT NULL DEFAULT '0',
`showaudiocodec` tinyint(1) NOT NULL DEFAULT '0',
`catsperrow` smallint(5) unsigned NOT NULL DEFAULT '7',
`catpadding` smallint(5) unsigned NOT NULL DEFAULT '25',
2021-03-17 18:46:40 +08:00
`custom_fields` text,
`custom_fields_display_name` varchar(255) NOT NULL DEFAULT '',
2021-03-18 02:01:12 +08:00
`custom_fields_display` text,
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `searchbox`
--
LOCK TABLES `searchbox` WRITE;
/*!40000 ALTER TABLE `searchbox` DISABLE KEYS */;
2021-03-18 20:32:35 +08:00
INSERT INTO `searchbox` VALUES (4,'chd',1,0,1,1,1,0,1,0,10,7,'','','');
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `searchbox` ENABLE KEYS */;
UNLOCK TABLES;
2021-06-04 21:04:12 +08:00
--
-- Table structure for table `searchbox_fields`
--
DROP TABLE IF EXISTS `searchbox_fields`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `searchbox_fields` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`searchbox_id` int(11) NOT NULL,
`field_type` varchar(255) NOT NULL,
`field_id` int(11) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq_searchbox_type_id` (`searchbox_id`,`field_type`,`field_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `searchbox_fields`
--
LOCK TABLES `searchbox_fields` WRITE;
/*!40000 ALTER TABLE `searchbox_fields` DISABLE KEYS */;
/*!40000 ALTER TABLE `searchbox_fields` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `secondicons`
--
DROP TABLE IF EXISTS `secondicons`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `secondicons` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`source` tinyint(3) unsigned NOT NULL DEFAULT '0',
`medium` tinyint(3) unsigned NOT NULL DEFAULT '0',
`codec` tinyint(3) unsigned NOT NULL DEFAULT '0',
`standard` tinyint(3) unsigned NOT NULL DEFAULT '0',
`processing` tinyint(3) unsigned NOT NULL DEFAULT '0',
`team` tinyint(3) unsigned NOT NULL DEFAULT '0',
`audiocodec` tinyint(3) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`class_name` varchar(255) DEFAULT NULL,
2021-02-01 20:19:39 +08:00
`image` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `secondicons`
--
LOCK TABLES `secondicons` WRITE;
/*!40000 ALTER TABLE `secondicons` DISABLE KEYS */;
INSERT INTO `secondicons` VALUES (1,0,1,1,0,0,0,0,'Blu-ray/H.264',NULL,'bdh264.png'),(2,0,1,2,0,0,0,0,'Blu-ray/VC-1',NULL,'bdvc1.png'),(3,0,1,4,0,0,0,0,'Blu-ray/MPEG-2',NULL,'bdmpeg2.png'),(4,0,2,1,0,0,0,0,'HD DVD/H.264',NULL,'hddvdh264.png'),(5,0,2,2,0,0,0,0,'HD DVD/VC-1',NULL,'hddvdvc1.png'),(6,0,2,4,0,0,0,0,'HD DVD/MPEG-2',NULL,'hddvdmpeg2.png'),(7,0,3,1,0,0,0,0,'Remux/H.264',NULL,'remuxh264.png'),(8,0,3,2,0,0,0,0,'Remux/VC-1',NULL,'remuxvc1.png'),(9,0,3,4,0,0,0,0,'Remux/MPEG-2',NULL,'remuxmpeg2.png'),(10,0,4,0,0,0,0,0,'AVCHD',NULL,'avchd.png'),(11,0,5,1,0,0,0,0,'HDTV/H.264',NULL,'hdtvh264.png'),(12,0,5,4,0,0,0,0,'HDTV/MPEG-2',NULL,'hdtvmpeg2.png'),(13,0,6,0,0,0,0,0,'DVDR',NULL,'dvdr.png'),(14,0,7,1,0,0,0,0,'Rip/H.264',NULL,'riph264.png'),(15,0,7,3,0,0,0,0,'Rip/Xvid',NULL,'ripxvid.png'),(16,0,8,5,0,0,0,0,'CD/FLAC',NULL,'cdflac.png'),(17,0,8,6,0,0,0,0,'CD/APE',NULL,'cdape.png'),(18,0,8,7,0,0,0,0,'CD/DTS',NULL,'cddts.png'),(19,0,8,9,0,0,0,0,'CD/Other',NULL,'cdother.png'),(20,0,9,5,0,0,0,0,'Extract/FLAC',NULL,'extractflac.png'),(21,0,9,7,0,0,0,0,'Extract/DTS',NULL,'extractdts.png'),(22,0,9,8,0,0,0,0,'Extract/AC-3',NULL,'extractac3.png');
/*!40000 ALTER TABLE `secondicons` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `settings`
--
DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
2021-02-02 00:41:36 +08:00
`name` varchar(255) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`value` mediumtext,
2021-06-04 21:04:12 +08:00
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
UNIQUE KEY `uniqe_name` (`name`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `settings`
--
LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shoutbox`
--
DROP TABLE IF EXISTS `shoutbox`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `shoutbox` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`date` int(10) unsigned NOT NULL DEFAULT '0',
`text` text NOT NULL,
`type` enum('sb','hb') NOT NULL DEFAULT 'sb',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `shoutbox`
--
LOCK TABLES `shoutbox` WRITE;
/*!40000 ALTER TABLE `shoutbox` DISABLE KEYS */;
/*!40000 ALTER TABLE `shoutbox` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sitelog`
--
DROP TABLE IF EXISTS `sitelog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sitelog` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`added` datetime DEFAULT NULL,
`txt` text NOT NULL,
`security_level` enum('normal','mod') NOT NULL DEFAULT 'normal',
PRIMARY KEY (`id`),
KEY `added` (`added`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sitelog`
--
LOCK TABLES `sitelog` WRITE;
/*!40000 ALTER TABLE `sitelog` DISABLE KEYS */;
/*!40000 ALTER TABLE `sitelog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `snatched`
--
DROP TABLE IF EXISTS `snatched`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `snatched` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`torrentid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ip` varchar(64) NOT NULL DEFAULT '',
`port` smallint(5) unsigned NOT NULL DEFAULT '0',
`uploaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`downloaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`to_go` bigint(20) unsigned NOT NULL DEFAULT '0',
`seedtime` int(10) unsigned NOT NULL DEFAULT '0',
`leechtime` int(10) unsigned NOT NULL DEFAULT '0',
`last_action` datetime DEFAULT NULL,
`startdat` datetime DEFAULT NULL,
`completedat` datetime DEFAULT NULL,
`finished` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
KEY `torrentid_userid` (`torrentid`,`userid`),
KEY `userid` (`userid`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `snatched`
--
LOCK TABLES `snatched` WRITE;
/*!40000 ALTER TABLE `snatched` DISABLE KEYS */;
/*!40000 ALTER TABLE `snatched` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sources`
--
DROP TABLE IF EXISTS `sources`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sources` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sources`
--
LOCK TABLES `sources` WRITE;
/*!40000 ALTER TABLE `sources` DISABLE KEYS */;
INSERT INTO `sources` VALUES (1,'Blu-ray',0),(2,'HD DVD',0),(3,'DVD',0),(4,'HDTV',0),(5,'TV',0),(6,'Other',0);
/*!40000 ALTER TABLE `sources` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `staffmessages`
--
DROP TABLE IF EXISTS `staffmessages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `staffmessages` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`sender` mediumint(8) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`msg` text,
`subject` varchar(128) NOT NULL DEFAULT '',
`answeredby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`answered` tinyint(1) NOT NULL DEFAULT '0',
`answer` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `staffmessages`
--
LOCK TABLES `staffmessages` WRITE;
/*!40000 ALTER TABLE `staffmessages` DISABLE KEYS */;
/*!40000 ALTER TABLE `staffmessages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `standards`
--
DROP TABLE IF EXISTS `standards`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `standards` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `standards`
--
LOCK TABLES `standards` WRITE;
/*!40000 ALTER TABLE `standards` DISABLE KEYS */;
INSERT INTO `standards` VALUES (1,'1080p',0),(2,'1080i',0),(3,'720p',0),(4,'SD',0);
/*!40000 ALTER TABLE `standards` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `stylesheets`
--
DROP TABLE IF EXISTS `stylesheets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stylesheets` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`uri` varchar(255) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL DEFAULT '',
`addicode` text,
`designer` varchar(50) NOT NULL DEFAULT '',
`comment` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `stylesheets`
--
LOCK TABLES `stylesheets` WRITE;
/*!40000 ALTER TABLE `stylesheets` DISABLE KEYS */;
2021-03-18 20:32:35 +08:00
INSERT INTO `stylesheets` VALUES (2,'styles/BlueGene/','Blue Gene','','Zantetsu','HDBits clone'),(3,'styles/BlasphemyOrange/','Blasphemy Orange','','Zantetsu','Bit-HDTV clone'),(4,'styles/Classic/','Classic','','Zantetsu','TBSource original mod'),(6,'styles/DarkPassion/','Dark Passion','','Zantetsu',''),(7,'styles/BambooGreen/','Bamboo Green','','Xia Zuojie','Baidu Hi clone');
2021-01-25 20:02:27 +08:00
/*!40000 ALTER TABLE `stylesheets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subs`
--
DROP TABLE IF EXISTS `subs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`torrent_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lang_id` smallint(5) unsigned NOT NULL DEFAULT '0',
2021-01-25 20:02:27 +08:00
`title` varchar(255) NOT NULL DEFAULT '',
`filename` varchar(255) NOT NULL DEFAULT '',
`added` datetime DEFAULT NULL,
`size` bigint(20) unsigned NOT NULL DEFAULT '0',
`uppedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`anonymous` enum('yes','no') NOT NULL DEFAULT 'no',
`hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ext` varchar(10) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `torrentid_langid` (`torrent_id`,`lang_id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subs`
--
LOCK TABLES `subs` WRITE;
/*!40000 ALTER TABLE `subs` DISABLE KEYS */;
/*!40000 ALTER TABLE `subs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `suggest`
--
DROP TABLE IF EXISTS `suggest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `suggest` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`keywords` varchar(255) NOT NULL DEFAULT '',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`adddate` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `keywords` (`keywords`(4)),
KEY `adddate` (`adddate`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `suggest`
--
LOCK TABLES `suggest` WRITE;
/*!40000 ALTER TABLE `suggest` DISABLE KEYS */;
/*!40000 ALTER TABLE `suggest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sysoppanel`
--
DROP TABLE IF EXISTS `sysoppanel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sysoppanel` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
`info` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sysoppanel`
--
LOCK TABLES `sysoppanel` WRITE;
/*!40000 ALTER TABLE `sysoppanel` DISABLE KEYS */;
INSERT INTO `sysoppanel` VALUES (1,'Delete disabled users','deletedisabled.php','Delete all disabled users'),(2,'Manage tracker forum','forummanage.php','Edit/Delete forum'),(3,'MySQL Stats','mysql_stats.php','See MySql stats'),(4,'Mass mailer','massmail.php','Send e-mail to all users on the tracker'),(5,'Do cleanup','docleanup.php','Do cleanup functions'),(6,'Ban System','bans.php','Ban / Unban IP'),(7,'Failed Logins','maxlogin.php','Show Failed Login Attempts'),(8,'Bitbucket','bitbucketlog.php','Bitbucket Log'),(9,'Ban EMAIL address','bannedemails.php','Ban EMAILs stop registration.'),(10,'Allow EMAIL address','allowedemails.php','Allow EMAIL registration.'),(11,'Location','location.php','Manage location and location speed'),(12,'Add Upload','amountupload.php','Add upload to certain classes');
/*!40000 ALTER TABLE `sysoppanel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `teams`
--
DROP TABLE IF EXISTS `teams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `teams` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
2021-02-01 20:19:39 +08:00
`name` varchar(30) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`sort_index` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
2021-02-01 20:19:39 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `teams`
--
LOCK TABLES `teams` WRITE;
/*!40000 ALTER TABLE `teams` DISABLE KEYS */;
INSERT INTO `teams` VALUES (1,'HDS',0),(2,'CHD',0),(3,'MySiLU',0),(4,'WiKi',0),(5,'Other',0);
/*!40000 ALTER TABLE `teams` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `thanks`
--
DROP TABLE IF EXISTS `thanks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `thanks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`torrentid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `torrentid_id` (`torrentid`,`id`),
KEY `torrentid_userid` (`torrentid`,`userid`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `thanks`
--
LOCK TABLES `thanks` WRITE;
/*!40000 ALTER TABLE `thanks` DISABLE KEYS */;
/*!40000 ALTER TABLE `thanks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `topics`
--
DROP TABLE IF EXISTS `topics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `topics` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`userid` mediumint(8) unsigned NOT NULL DEFAULT '0',
2021-02-01 20:19:39 +08:00
`subject` varchar(128) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`locked` enum('yes','no') NOT NULL DEFAULT 'no',
`forumid` smallint(5) unsigned NOT NULL DEFAULT '0',
`firstpost` int(10) unsigned NOT NULL DEFAULT '0',
`lastpost` int(10) unsigned NOT NULL DEFAULT '0',
`sticky` enum('no','yes') NOT NULL DEFAULT 'no',
`hlcolor` tinyint(3) unsigned NOT NULL DEFAULT '0',
`views` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `subject` (`subject`),
KEY `forumid_lastpost` (`forumid`,`lastpost`),
KEY `forumid_sticky_lastpost` (`forumid`,`sticky`,`lastpost`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `topics`
--
LOCK TABLES `topics` WRITE;
/*!40000 ALTER TABLE `topics` DISABLE KEYS */;
/*!40000 ALTER TABLE `topics` ENABLE KEYS */;
UNLOCK TABLES;
2021-06-04 21:04:12 +08:00
--
-- Table structure for table `torrent_secrets`
--
DROP TABLE IF EXISTS `torrent_secrets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `torrent_secrets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`torrent_id` int(11) NOT NULL DEFAULT '0',
`secret` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_uid` (`uid`),
KEY `idx_torrent_id` (`torrent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `torrent_secrets`
--
LOCK TABLES `torrent_secrets` WRITE;
/*!40000 ALTER TABLE `torrent_secrets` DISABLE KEYS */;
/*!40000 ALTER TABLE `torrent_secrets` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `torrents`
--
DROP TABLE IF EXISTS `torrents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `torrents` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`info_hash` binary(20) NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`filename` varchar(255) NOT NULL DEFAULT '',
`save_as` varchar(255) NOT NULL DEFAULT '',
`descr` text,
`small_descr` varchar(255) NOT NULL DEFAULT '',
`ori_descr` text,
`category` smallint(5) unsigned NOT NULL DEFAULT '0',
`source` tinyint(3) unsigned NOT NULL DEFAULT '0',
`medium` tinyint(3) unsigned NOT NULL DEFAULT '0',
`codec` tinyint(3) unsigned NOT NULL DEFAULT '0',
`standard` tinyint(3) unsigned NOT NULL DEFAULT '0',
`processing` tinyint(3) unsigned NOT NULL DEFAULT '0',
`team` tinyint(3) unsigned NOT NULL DEFAULT '0',
`audiocodec` tinyint(3) unsigned NOT NULL DEFAULT '0',
`size` bigint(20) unsigned NOT NULL DEFAULT '0',
`added` datetime DEFAULT NULL,
`type` enum('single','multi') NOT NULL DEFAULT 'single',
`numfiles` smallint(5) unsigned NOT NULL DEFAULT '0',
`comments` mediumint(8) unsigned NOT NULL DEFAULT '0',
`views` int(10) unsigned NOT NULL DEFAULT '0',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
`times_completed` mediumint(8) unsigned NOT NULL DEFAULT '0',
`leechers` mediumint(8) unsigned NOT NULL DEFAULT '0',
`seeders` mediumint(8) unsigned NOT NULL DEFAULT '0',
`last_action` datetime DEFAULT NULL,
`visible` enum('yes','no') NOT NULL DEFAULT 'yes',
`banned` enum('yes','no') NOT NULL DEFAULT 'no',
`owner` mediumint(8) unsigned NOT NULL DEFAULT '0',
`nfo` blob,
`sp_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
`promotion_time_type` tinyint(3) unsigned NOT NULL DEFAULT '0',
`promotion_until` datetime DEFAULT NULL,
`anonymous` enum('yes','no') NOT NULL DEFAULT 'no',
`url` int(10) unsigned DEFAULT NULL,
2021-06-04 21:04:12 +08:00
`pos_state` varchar(32) NOT NULL DEFAULT 'normal',
2021-01-25 20:02:27 +08:00
`cache_stamp` tinyint(3) unsigned NOT NULL DEFAULT '0',
`picktype` enum('hot','classic','recommended','normal') NOT NULL DEFAULT 'normal',
`picktime` datetime DEFAULT NULL,
`last_reseed` datetime DEFAULT NULL,
`pt_gen` mediumtext,
2021-02-23 19:47:55 +08:00
`tags` int(11) NOT NULL DEFAULT '0',
2021-03-17 18:46:40 +08:00
`technical_info` text,
2021-01-25 20:02:27 +08:00
PRIMARY KEY (`id`),
UNIQUE KEY `info_hash` (`info_hash`),
KEY `owner` (`owner`),
KEY `visible_pos_id` (`visible`,`pos_state`,`id`),
KEY `url` (`url`),
KEY `category_visible_banned` (`category`,`visible`,`banned`),
KEY `visible_banned_pos_id` (`visible`,`banned`,`pos_state`,`id`),
FULLTEXT KEY `name` (`name`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `torrents`
--
LOCK TABLES `torrents` WRITE;
/*!40000 ALTER TABLE `torrents` DISABLE KEYS */;
/*!40000 ALTER TABLE `torrents` ENABLE KEYS */;
UNLOCK TABLES;
2021-03-17 18:46:40 +08:00
--
-- Table structure for table `torrents_custom_field_values`
--
DROP TABLE IF EXISTS `torrents_custom_field_values`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `torrents_custom_field_values` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`torrent_id` int(11) NOT NULL DEFAULT '0',
`custom_field_id` int(11) NOT NULL DEFAULT '0',
`custom_field_value` mediumtext,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_torrent_id` (`torrent_id`),
KEY `idx_field_id` (`custom_field_id`),
KEY `idx_field_value` (`custom_field_value`(768))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `torrents_custom_field_values`
--
LOCK TABLES `torrents_custom_field_values` WRITE;
/*!40000 ALTER TABLE `torrents_custom_field_values` DISABLE KEYS */;
/*!40000 ALTER TABLE `torrents_custom_field_values` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `torrents_custom_fields`
--
DROP TABLE IF EXISTS `torrents_custom_fields`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `torrents_custom_fields` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`label` varchar(255) NOT NULL DEFAULT '',
`type` enum('text','textarea','select','radio','checkbox','image') NOT NULL,
`required` tinyint(4) NOT NULL DEFAULT '0',
`is_single_row` int(11) NOT NULL DEFAULT '0',
`options` text,
`help` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `torrents_custom_fields`
--
LOCK TABLES `torrents_custom_fields` WRITE;
/*!40000 ALTER TABLE `torrents_custom_fields` DISABLE KEYS */;
/*!40000 ALTER TABLE `torrents_custom_fields` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `torrents_state`
--
DROP TABLE IF EXISTS `torrents_state`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `torrents_state` (
`global_sp_state` tinyint(3) unsigned NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `torrents_state`
--
LOCK TABLES `torrents_state` WRITE;
/*!40000 ALTER TABLE `torrents_state` DISABLE KEYS */;
INSERT INTO `torrents_state` VALUES (1);
/*!40000 ALTER TABLE `torrents_state` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `uploadspeed`
--
DROP TABLE IF EXISTS `uploadspeed`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uploadspeed` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `uploadspeed`
--
LOCK TABLES `uploadspeed` WRITE;
/*!40000 ALTER TABLE `uploadspeed` DISABLE KEYS */;
INSERT INTO `uploadspeed` VALUES (1,'64kbps'),(2,'128kbps'),(3,'256kbps'),(4,'512kbps'),(5,'768kbps'),(6,'1Mbps'),(7,'1.5Mbps'),(8,'2Mbps'),(9,'3Mbps'),(10,'4Mbps'),(11,'5Mbps'),(12,'6Mbps'),(13,'7Mbps'),(14,'8Mbps'),(15,'9Mbps'),(16,'10Mbps'),(17,'48Mbps'),(18,'100Mbit');
/*!40000 ALTER TABLE `uploadspeed` ENABLE KEYS */;
UNLOCK TABLES;
2021-05-14 00:31:37 +08:00
--
-- Table structure for table `user_ban_logs`
--
DROP TABLE IF EXISTS `user_ban_logs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_ban_logs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL DEFAULT '0',
`username` varchar(255) NOT NULL DEFAULT '',
`operator` int(11) NOT NULL DEFAULT '0',
`reason` varchar(255) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_uid` (`uid`),
KEY `idx_username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_ban_logs`
--
LOCK TABLES `user_ban_logs` WRITE;
/*!40000 ALTER TABLE `user_ban_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_ban_logs` ENABLE KEYS */;
UNLOCK TABLES;
2021-01-25 20:02:27 +08:00
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(40) NOT NULL DEFAULT '',
`passhash` varchar(32) NOT NULL DEFAULT '',
`secret` varbinary(20) NOT NULL,
`email` varchar(80) NOT NULL DEFAULT '',
`status` enum('pending','confirmed') NOT NULL DEFAULT 'pending',
`added` datetime DEFAULT NULL,
`last_login` datetime DEFAULT NULL,
`last_access` datetime DEFAULT NULL,
`last_home` datetime DEFAULT NULL,
`last_offer` datetime DEFAULT NULL,
`forum_access` datetime DEFAULT NULL,
`last_staffmsg` datetime DEFAULT NULL,
`last_pm` datetime DEFAULT NULL,
`last_comment` datetime DEFAULT NULL,
`last_post` datetime DEFAULT NULL,
`last_browse` int(10) unsigned NOT NULL DEFAULT '0',
`last_music` int(10) unsigned NOT NULL DEFAULT '0',
`last_catchup` int(10) unsigned NOT NULL DEFAULT '0',
`editsecret` varbinary(20) NOT NULL,
`privacy` enum('strong','normal','low') NOT NULL DEFAULT 'normal',
`stylesheet` tinyint(3) unsigned NOT NULL DEFAULT '1',
`caticon` tinyint(3) unsigned NOT NULL DEFAULT '1',
`fontsize` enum('small','medium','large') NOT NULL DEFAULT 'medium',
`info` text,
`acceptpms` enum('yes','friends','no') NOT NULL DEFAULT 'yes',
`commentpm` enum('yes','no') NOT NULL DEFAULT 'yes',
`ip` varchar(64) NOT NULL DEFAULT '',
`class` tinyint(3) unsigned NOT NULL DEFAULT '1',
`max_class_once` tinyint(3) NOT NULL DEFAULT '1',
`avatar` varchar(255) NOT NULL DEFAULT '',
`uploaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`downloaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`seedtime` bigint(20) unsigned NOT NULL DEFAULT '0',
`leechtime` bigint(20) unsigned NOT NULL DEFAULT '0',
`title` varchar(30) NOT NULL DEFAULT '',
`country` smallint(5) unsigned NOT NULL DEFAULT '107',
`notifs` varchar(500) DEFAULT NULL,
`modcomment` text,
`enabled` enum('yes','no') NOT NULL DEFAULT 'yes',
`avatars` enum('yes','no') NOT NULL DEFAULT 'yes',
`donor` enum('yes','no') NOT NULL DEFAULT 'no',
`donated` decimal(8,2) NOT NULL DEFAULT '0.00',
`donated_cny` decimal(8,2) NOT NULL DEFAULT '0.00',
`donoruntil` datetime DEFAULT NULL,
`warned` enum('yes','no') NOT NULL DEFAULT 'no',
`warneduntil` datetime DEFAULT NULL,
`noad` enum('yes','no') NOT NULL DEFAULT 'no',
`noaduntil` datetime DEFAULT NULL,
`torrentsperpage` tinyint(3) unsigned NOT NULL DEFAULT '0',
`topicsperpage` tinyint(3) unsigned NOT NULL DEFAULT '0',
`postsperpage` tinyint(3) unsigned NOT NULL DEFAULT '0',
`clicktopic` enum('firstpage','lastpage') NOT NULL DEFAULT 'firstpage',
`deletepms` enum('yes','no') NOT NULL DEFAULT 'yes',
`savepms` enum('yes','no') NOT NULL DEFAULT 'no',
`showhot` enum('yes','no') NOT NULL DEFAULT 'yes',
`showclassic` enum('yes','no') NOT NULL DEFAULT 'yes',
`support` enum('yes','no') NOT NULL DEFAULT 'no',
`picker` enum('yes','no') NOT NULL DEFAULT 'no',
2021-02-01 20:19:39 +08:00
`stafffor` varchar(255) NOT NULL DEFAULT '',
`supportfor` varchar(255) NOT NULL DEFAULT '',
`pickfor` varchar(255) NOT NULL DEFAULT '',
`supportlang` varchar(50) NOT NULL DEFAULT '',
2021-01-25 20:02:27 +08:00
`passkey` varchar(32) NOT NULL DEFAULT '',
`promotion_link` varchar(32) DEFAULT NULL,
`uploadpos` enum('yes','no') NOT NULL DEFAULT 'yes',
`forumpost` enum('yes','no') NOT NULL DEFAULT 'yes',
`downloadpos` enum('yes','no') NOT NULL DEFAULT 'yes',
`clientselect` tinyint(3) unsigned NOT NULL DEFAULT '0',
`signatures` enum('yes','no') NOT NULL DEFAULT 'yes',
`signature` varchar(800) NOT NULL DEFAULT '',
`lang` smallint(5) unsigned NOT NULL DEFAULT '6',
`cheat` smallint(6) NOT NULL DEFAULT '0',
`download` int(10) unsigned NOT NULL DEFAULT '0',
`upload` int(10) unsigned NOT NULL DEFAULT '0',
`isp` tinyint(3) unsigned NOT NULL DEFAULT '0',
`invites` smallint(5) unsigned NOT NULL DEFAULT '0',
`invited_by` mediumint(8) unsigned NOT NULL DEFAULT '0',
`gender` enum('Male','Female','N/A') NOT NULL DEFAULT 'N/A',
`vip_added` enum('yes','no') NOT NULL DEFAULT 'no',
`vip_until` datetime DEFAULT NULL,
`seedbonus` decimal(10,1) NOT NULL DEFAULT '0.0',
`charity` decimal(10,1) NOT NULL DEFAULT '0.0',
`bonuscomment` text,
`parked` enum('yes','no') NOT NULL DEFAULT 'no',
`leechwarn` enum('yes','no') NOT NULL DEFAULT 'no',
`leechwarnuntil` datetime DEFAULT NULL,
`lastwarned` datetime DEFAULT NULL,
`timeswarned` tinyint(3) unsigned NOT NULL DEFAULT '0',
`warnedby` mediumint(8) unsigned NOT NULL DEFAULT '0',
`sbnum` smallint(5) unsigned NOT NULL DEFAULT '70',
`sbrefresh` smallint(5) unsigned NOT NULL DEFAULT '120',
`hidehb` enum('yes','no') DEFAULT 'no',
`showimdb` enum('yes','no') DEFAULT 'yes',
`showdescription` enum('yes','no') DEFAULT 'yes',
`showcomment` enum('yes','no') DEFAULT 'yes',
`showclienterror` enum('yes','no') NOT NULL DEFAULT 'no',
`showdlnotice` tinyint(1) NOT NULL DEFAULT '1',
`tooltip` enum('minorimdb','medianimdb','off') NOT NULL DEFAULT 'off',
`shownfo` enum('yes','no') DEFAULT 'yes',
`timetype` enum('timeadded','timealive') DEFAULT 'timealive',
`appendsticky` enum('yes','no') DEFAULT 'yes',
`appendnew` enum('yes','no') DEFAULT 'yes',
`appendpromotion` enum('highlight','word','icon','off') DEFAULT 'icon',
`appendpicked` enum('yes','no') DEFAULT 'yes',
`dlicon` enum('yes','no') DEFAULT 'yes',
`bmicon` enum('yes','no') DEFAULT 'yes',
`showsmalldescr` enum('yes','no') NOT NULL DEFAULT 'yes',
`showcomnum` enum('yes','no') DEFAULT 'yes',
`showlastcom` enum('yes','no') DEFAULT 'no',
`showlastpost` enum('yes','no') NOT NULL DEFAULT 'no',
`pmnum` tinyint(3) unsigned NOT NULL DEFAULT '10',
`school` smallint(5) unsigned NOT NULL DEFAULT '35',
`showfb` enum('yes','no') NOT NULL DEFAULT 'yes',
`page` varchar(255) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
KEY `status_added` (`status`,`added`),
KEY `ip` (`ip`),
KEY `uploaded` (`uploaded`),
KEY `downloaded` (`downloaded`),
KEY `country` (`country`),
KEY `last_access` (`last_access`),
KEY `enabled` (`enabled`),
KEY `warned` (`warned`),
KEY `cheat` (`cheat`),
KEY `class` (`class`),
KEY `passkey` (`passkey`(8))
2021-01-29 18:13:50 +08:00
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2021-01-25 20:02:27 +08:00
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
2021-06-04 21:04:12 +08:00
-- Dump completed on 2021-06-04 21:00:26