forked from ElizarovEugene/TorrentMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorrentmonitor.sql
executable file
·120 lines (92 loc) · 3.35 KB
/
torrentmonitor.sql
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# ************************************************************
# Схема: torrentmonitor
# Время создания: 2012-11-03 18:31:11 +0000
# ************************************************************
# Дамп таблицы buffer
# ------------------------------------------------------------
DROP TABLE IF EXISTS `buffer`;
CREATE TABLE `buffer` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) unsigned NOT NULL,
`section` varchar(60) NOT NULL DEFAULT '',
`threme_id` int(11) unsigned NOT NULL,
`threme` varchar(250) NOT NULL DEFAULT '',
`accept` tinyint(1) unsigned NOT NULL DEFAULT '0',
`downloaded` tinyint(1) unsigned NOT NULL DEFAULT '0',
`new` tinyint(1) unsigned NOT NULL DEFAULT '1',
`tracker` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Дамп таблицы credentials
# ------------------------------------------------------------
DROP TABLE IF EXISTS `credentials`;
CREATE TABLE `credentials` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tracker` varchar(30) DEFAULT NULL,
`log` varchar(30) DEFAULT NULL,
`pass` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
LOCK TABLES `credentials` WRITE;
/*!40000 ALTER TABLE `credentials` DISABLE KEYS */;
INSERT INTO `credentials` (`id`, `tracker`, `log`, `pass`)
VALUES
(1,'rutracker.org','',''),
(2,'nnm-club.ru','',''),
(3,'lostfilm.tv','',''),
(4,'novafilm.tv','','');
/*!40000 ALTER TABLE `credentials` ENABLE KEYS */;
UNLOCK TABLES;
# Дамп таблицы settings
# ------------------------------------------------------------
DROP TABLE IF EXISTS `settings`;
CREATE TABLE `settings` (
`id` int(3) NOT NULL AUTO_INCREMENT,
`key` varchar(32) NOT NULL,
`val` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` (`id`, `key`, `val`)
VALUES
(1,'email',''),
(2,'path',''),
(3,'send','1'),
(5,'password','1f10c9fd49952a7055531975c06c5bd8'),
(6,'auth','1'),
(4,'send_warning','0');
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;
# Дамп таблицы torrent
# ------------------------------------------------------------
DROP TABLE IF EXISTS `torrent`;
CREATE TABLE `torrent` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tracker` varchar(30) NOT NULL,
`name` varchar(250) NOT NULL DEFAULT '',
`hd` tinyint(1) unsigned NOT NULL DEFAULT '0',
`torrent_id` int(9) unsigned NOT NULL DEFAULT '0',
`ep` varchar(10) DEFAULT '',
`timestamp` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Дамп таблицы warning
# ------------------------------------------------------------
DROP TABLE IF EXISTS `warning`;
CREATE TABLE `warning` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`time` datetime NOT NULL,
`where` varchar(40) NOT NULL,
`reason` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
# Дамп таблицы watch
# ------------------------------------------------------------
DROP TABLE IF EXISTS `watch`;
CREATE TABLE `watch` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tracker` varchar(30) NOT NULL DEFAULT '',
`name` varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;