CREATE TABLE `PREFIX_ip_history` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `ip` varchar(32) NOT NULL default '0',
  `time` int(11) NOT NULL default '0',
  `pageurl` varchar(255) NOT NULL default '0',
  `pagetitle` varchar(255) NOT NULL default '0',
  `pagefrom` varchar(255) NOT NULL default '0',
  `language` varchar(16) NOT NULL default '0',
  `color` varchar(4) NOT NULL default '0',
  `screensize` varchar(20) NOT NULL default '0',
  `http_user_agent` varchar(255) NOT NULL default '0',
  `pagefromsite` varchar(255) NOT NULL default '0',
  `keyword` varchar(255) NOT NULL default '0',
  `country` varchar(32) NOT NULL default '0',
  `address` varchar(255) NOT NULL default '0',
  `province` varchar(32) NOT NULL default '0',
  `city` varchar(32) NOT NULL default '0',
  `alexatool` int(11) NOT NULL default '0',
  `timezone` int(11) NOT NULL default '0',
  `firsttime` int(11) NOT NULL default '0',
  `lasttime` int(11) NOT NULL default '0',
  `system` varchar(32) NOT NULL default '0',
  `browser` varchar(32) NOT NULL default '0',
  `bot` varchar(32) NOT NULL default '0',
  `java` varchar(32) NOT NULL default '0',
  `flash` varchar(32) NOT NULL default '0',	
  `todayfirst` int(11) NOT NULL default '0',
  `returner` int(11) NOT NULL default '0',
  `website` varchar(50) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `pagefromsite` (`pagefromsite`),
  KEY `keyword` (`keyword`),
  KEY `ip` (`ip`),
  KEY `time` (`time`),
  KEY `timezone` (`timezone`),
  KEY `website` (`website`),
  KEY `country` (`country`,`address`,`province`,`city`),
  KEY `plug` (`bot`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;