From 75b75b201c00b5f2316e0027f50c83b562580678 Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Mon, 8 Oct 2007 07:55:13 +0000 Subject: [PATCH] Database table for Bittorrent peers. svn path=/trunk/boinc/; revision=13793 --- html/bt/database/bittorrent_peers.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 html/bt/database/bittorrent_peers.sql 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