34 lines
1.5 KiB
PHP
34 lines
1.5 KiB
PHP
<?php
|
|
$this->E_D("DROP TABLE IF EXISTS `db_cms_news`;");
|
|
$this->E_C("CREATE TABLE `db_cms_news` (
|
|
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
|
`catid` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`modelid` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`checked` smallint(5) unsigned NOT NULL DEFAULT '0',
|
|
`title` varchar(255) NOT NULL DEFAULT '',
|
|
`thumb` varchar(255) NOT NULL DEFAULT '',
|
|
`linkurl` varchar(255) NOT NULL DEFAULT '',
|
|
`newstime` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`pagetitle` varchar(255) NOT NULL DEFAULT '',
|
|
`keywords` varchar(255) NOT NULL DEFAULT '',
|
|
`description` varchar(255) NOT NULL DEFAULT '',
|
|
`pubid` bigint(15) unsigned NOT NULL DEFAULT '0',
|
|
`sort` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
`userid` int(11) unsigned NOT NULL DEFAULT '0',
|
|
`username` char(20) NOT NULL DEFAULT '',
|
|
`addtime` int(10) unsigned NOT NULL DEFAULT '0',
|
|
`editortime` int(10) unsigned NOT NULL DEFAULT '0',
|
|
`is_good` int(11) NOT NULL DEFAULT '0' COMMENT '推荐',
|
|
`is_top` int(11) NOT NULL DEFAULT '0' COMMENT '置顶',
|
|
`views` int(11) NOT NULL DEFAULT '0' COMMENT '点击总数',
|
|
`goods` int(11) NOT NULL DEFAULT '0' COMMENT '点赞数',
|
|
`favs` int(11) NOT NULL DEFAULT '0' COMMENT '收藏数',
|
|
`comments` int(11) NOT NULL DEFAULT '0' COMMENT '评论数',
|
|
`viewtemp` int(11) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `checked` (`checked`),
|
|
KEY `catid` (`catid`),
|
|
KEY `sort` (`sort`)
|
|
) ENGINE=MyISAM AUTO_INCREMENT=9394 DEFAULT CHARSET=utf8 COMMENT='新闻数据表'");
|
|
|
|
?>
|