DROP TABLE IF EXISTS `phpcms_article`;
CREATE TABLE `phpcms_article` (
  `articleid` int(10) unsigned NOT NULL auto_increment,
  `catid` smallint(5) unsigned NOT NULL default '0',
  `specialid` smallint(5) unsigned NOT NULL default '0',
  `typeid` smallint(5) unsigned NOT NULL default '0',
  `title` varchar(100) NOT NULL default '',
  `titleintact` varchar(255) NOT NULL default '',
  `subheading` varchar(255) NOT NULL default '',
  `style` varchar(50) NOT NULL default '',
  `showcommentlink` tinyint(1) unsigned NOT NULL default '0',
  `introduce` text NOT NULL,
  `keywords` varchar(100) NOT NULL default '',
  `author` varchar(50) NOT NULL default '',
  `copyfrom` varchar(255) NOT NULL default '',
  `paginationtype` tinyint(1) NOT NULL default '0',
  `maxcharperpage` smallint(5) unsigned NOT NULL default '0',
  `hits` int(10) unsigned NOT NULL default '0',
  `comments` int(10) unsigned NOT NULL default '0',
  `thumb` varchar(255) NOT NULL default '',
  `username` varchar(20) NOT NULL default '',
  `addtime` int(10) unsigned NOT NULL default '0',
  `editor` varchar(25) NOT NULL default '',
  `edittime` int(10) unsigned NOT NULL default '0',
  `checker` varchar(25) NOT NULL default '',
  `checktime` int(10) unsigned NOT NULL default '0',
  `templateid` varchar(20) NOT NULL default '0',
  `skinid` varchar(20) NOT NULL default '0',
  `arrposid` varchar(50) NOT NULL default '',
  `status` tinyint(1) NOT NULL default '0',
  `listorder` smallint(4) unsigned NOT NULL default '0',
  `arrgroupidview` varchar(255) NOT NULL default '',
  `readpoint` smallint(5) unsigned NOT NULL default '0',
  `ishtml` tinyint(1) unsigned NOT NULL default '1',
  `htmldir` varchar(20) NOT NULL default '',
  `prefix` varchar(50) NOT NULL default '',
  `urlruleid` tinyint(3) unsigned NOT NULL default '0',
  `islink` tinyint(1) unsigned NOT NULL default '0',
  `linkurl` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`articleid`),
  KEY `catid` (`catid`,`status`,`listorder`,`articleid`),
  KEY `typeid` (`typeid`,`catid`,`status`,`listorder`,`articleid`),
  KEY `username` (`username`(10)),
  KEY `hits` (`status`,`hits`,`articleid`),
  KEY `specialid` (`specialid`,`status`,`listorder`,`articleid`)
) TYPE=MyISAM;