Database table for Bittorrent peers.

svn path=/trunk/boinc/; revision=13793
This commit is contained in:
Janus B. Kristensen 2007-10-08 07:55:13 +00:00
parent 243e89d8ac
commit 75b75b201c
1 changed files with 13 additions and 0 deletions

View File

@ -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;