DROP TABLE IF EXISTS `dircms_vote`;
CREATE TABLE `dircms_vote` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `votename` varchar(50) NOT NULL DEFAULT '',
  `starttime` char(10) NOT NULL,
  `endtime` char(10) NOT NULL,
  `delay` mediumint(8) NOT NULL DEFAULT '0',
  `totalcount` mediumint(8) unsigned NOT NULL DEFAULT '0',
  `ismore` tinyint(1) NOT NULL DEFAULT '0',
  `votenote` text,
  `siteid` smallint(4) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `siteid` (`siteid`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS `dircms_vote_ip`;
CREATE TABLE `dircms_vote_ip` (
  `voteid` mediumint(8) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `votetime` varchar(10) NOT NULL,
  KEY `voteid` (`voteid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
