新闻表的结构设计 请大家给看看~ 谢谢~
----==========新闻标题表开始==========
Create Table web_news_title
(
news_id varchar (20) primary key not null,---新闻ID
news_title varchar (100) not null,--------新闻标题
news_subhead varchar (100) null, --------副标题
news_time datetime, --------时间
news_url varchar (200) null, ------------链接URL
news_sender varchar (20) null,------------发布人
news_keyword varchar (50) null, --------关键字
news_hits int, --------点击次数
news_ip varchar (20) null, ---------新闻录入的IP地址
news_top bit not null, ---------是否置顶 (0不置顶,1置顶) 默认0 默认不置顶
news_bold bit not null, ---------是否加粗 (0不加粗,1加粗) 默认0 默认不加粗
news_close_comment bit not null, ---------是否关闭评论 (0开启评论,1关闭评论) 默认0,都是开启评论的
news_color varchar (20) null ---------颜色 (#000000 和 Red 格式都可以)
)
GO
----==========新闻内容表开始==========
Create Table web_news_content
(
news_id varchar (20) not null, ----------新闻ID
news_brief varchar (1000) null, ----------简介
news_content text ----------内容
)
GO
----==========新闻栏目表(保存某一菜单下面的新闻ID)==========
Create Table web_news_column
(
column_id varchar (50) primary key not null, ------ID
menu_id varchar (20) not null, ------菜单ID
news_id varchar (20) not null ------新闻ID
)
GO
----==========新闻评论表==========
Create Table web_news_comment
(
comment_id varchar (20) primary key not null,
news_id varchar (20) not null, ----新闻ID
comment_name varchar (20) not null, ----昵称
comment_title varchar (50) not null, ----标题
comment_content varchar (500) not null, ----内容
comment_time datetime not null, ----时间
comment_state int ----状态
)
GO