-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtables.sql
58 lines (52 loc) · 1.46 KB
/
tables.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
--
-- Table structure for table `tracker_peers`
--
DROP TABLE IF EXISTS `tracker_peers`;
CREATE TABLE `tracker_peers` (
`ID` int(11) auto_increment,
`UserID` int(10) unsigned,
`TorrentID` int(10) unsigned,
`IP` varchar(15),
`Port` int(5),
`Uploaded` int(32) unsigned,
`Downloaded` int(32) unsigned,
`Left` bigint(20),
`PeerID` char(20),
`Time` timestamp,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET utf8;
--
-- Table structure for table `tracker_announce_log`
--
DROP TABLE IF EXISTS `tracker_announce_log`;
CREATE TABLE `tracker_announce_log` (
`ID` int(11) auto_increment,
`UserID` int(10) unsigned NOT NULL,
`TorrentID` int(10) unsigned NOT NULL,
`IP` varchar(15) NOT NULL,
`Port` int(5) NOT NULL,
`Event` varchar(10) NOT NULL,
`Uploaded` int(32) unsigned NOT NULL,
`Downloaded` int(32) unsigned NOT NULL,
`Left` bigint(20) NOT NULL,
`PeerID` char(20) NOT NULL,
`Time` datetime NOT NULL,
`RequestURI` varchar(400) NOT NULL default '',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `tracker_snatches`
--
DROP TABLE IF EXISTS `tracker_snatches`;
CREATE TABLE `tracker_snatches` (
`ID` int(11) auto_increment,
`UserID` int(10) unsigned,
`TorrentID` int(10) unsigned,
`IP` varchar(15),
`Port` int(5),
`Uploaded` int(32) unsigned,
`Downloaded` int(32) unsigned,
`PeerID` char(20),
`Time` timestamp,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET utf8;