DROP TABLE IF EXISTS `bb_bt_tracker`;
CREATE TABLE `bb_bt_tracker` (
`peer_hash` varchar(32) character set utf8 collate utf8_bin NOT NULL default '',
`topic_id` mediumint(8) unsigned NOT NULL default '0',
`peer_id` varchar(20) NOT NULL,
`user_id` mediumint(9) NOT NULL default '0',
`ip` char(8) character set utf8 collate utf8_bin NOT NULL default '0',
`ipv6` varchar(32) default NULL,
`port` smallint(5) unsigned NOT NULL default '0',
`seeder` tinyint(1) NOT NULL default '0',
`releaser` tinyint(1) NOT NULL default '0',
`tor_type` tinyint(1) NOT NULL default '0',
`uploaded` bigint(20) unsigned NOT NULL default '0',
`downloaded` bigint(20) unsigned NOT NULL default '0',
`remain` bigint(20) unsigned NOT NULL default '0',
`speed_up` mediumint(8) unsigned NOT NULL default '0',
`speed_down` mediumint(8) unsigned NOT NULL default '0',
`up_add` bigint(20) unsigned NOT NULL default '0',
`down_add` bigint(20) unsigned NOT NULL default '0',
`update_time` int(11) NOT NULL default '0',
`xbt_error` varchar(200) default NULL,
`ul_gdc` bigint(20) unsigned NOT NULL default '0',
`ul_gdc_c` mediumint(9) unsigned NOT NULL default '0',
`ul_16k_c` mediumint(9) unsigned NOT NULL default '0',
`ul_eq_dl` mediumint(9) unsigned NOT NULL default '0',
`complete_percent` bigint(20) NOT NULL default '0',
PRIMARY KEY `topic_id` (`topic_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;