搜索
您的当前位置:首页正文

新闻系统数据库

来源:榕意旅游网
新闻系统数据库设计

一.新闻类型表(news _type)

a) Id (主键) b) clan_id c) name d) sort e) show f) parent_id

二.地域表(region)

a) Id (主键) b) name c) parent_id

三.新闻表(news_info)

a) Id(主键) b) subject c) description d) content

e) news _type_id(外键,连接news _type表) f) show g) sort

Region_Id(外键,连接region表) state author date

四.抓取信息表(grab)

a) Id(主键) b) url

c) master_label d) sub_label

e) news _type_id f) count

五.风格表(style)

a) Id(主键) b) clan_id

c) pattern_id(外键,连接pattern表)

h) i) j) k)

六.样式表(pattern)

a) Id(主键) b) Path c) Name

七.通知信息表(notice)

a) Id(主键)

b) Sender_id(发送人,管理员ID) c) Sendee_id(收件人,用户ID) d) title(标题) e) count(正文)

八.点赞记录表(endorse_record)

a) Id(主键)

b) User_Id (外键,连接user表)

c) news _info_id(外键,连接news _info表) d) time

九.投稿表(contribute)

a) Id

b) c) d) e)

User_id(外键,连接用户表) Subject description content

f) news _type_id(外键,连接news _type表) g) author h) date i) State

十.关键字表(keyword)

a) Id(主键) b) Value

十一. 举报表(report)

a) Id(主键)

b) News_info_id(外键,连接news_info表) c) User_id d) Reason e) State

因篇幅问题不能全部显示,请点此查看更多更全内容

Top