diff --git a/html/bt/database/bittorrent_peers.sql b/html/bt/database/bittorrent_peers.sql new file mode 100644 index 0000000000..4801144a83 --- /dev/null +++ b/html/bt/database/bittorrent_peers.sql @@ -0,0 +1,13 @@ +CREATE TABLE `bittorrent_peers` ( + `fileid` int(11) NOT NULL default '0', + `peerid` varbinary(20) NOT NULL, + `ip` varbinary(50) default NULL, + `port` int(11) NOT NULL, + `status` enum('started','stopped','completed') NOT NULL, + `uploaded` int(11) NOT NULL, + `downloaded` int(11) NOT NULL, + `timestamp` int(14) NOT NULL, + PRIMARY KEY (`fileid`,`peerid`), + KEY `timestamp` (`timestamp`) +) ENGINE=MEMORY; + \ No newline at end of file