--新闻表
|
|
create table tb_news (
|
|
id int identity, --自增阿弟
|
|
channel_id int not null default 0, --频道阿弟
|
|
category_id int not null default 0, --栏目类别阿弟
|
|
guid nvarchar(50) null, --既有阿弟
|
|
title nvarchar(100) null, --文章标题
|
|
url nvarchar(255) null default '', --链接地址
|
|
path nvarchar(255) null default '', --图片路径
|
|
fujian nvarchar(255) null default '', --附件地址
|
|
seo_title nvarchar(255) null default '', --优化标题
|
|
seo_keywords nvarchar(255) null default '', --优化关键字
|
|
seo_description nvarchar(255) null default '', --优化描述
|
|
content ntext null, --内容
|
|
paixu int null default 0, --排序
|
|
hits int null default 0, --点击量
|
|
remark nvarchar(255) null default '', --备注
|
|
target int null default 0, --打开方式(0新窗口/1原窗口)
|
|
add_time datetime null default getdate(), --添加日期
|
|
state int null default 0, --状态(0显示/1隐藏)
|
|
constraint PK_TB_NEWS primary key (id)
|
|
)
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'状态(0显示/1隐藏)',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'state'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'自增阿弟',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'频道阿弟',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'channel_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'栏目类别阿弟',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'category_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'打开方式(0新窗口/1原窗口)',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'target'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'既有阿弟',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'guid'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'文章标题',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'title'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'链接地址',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'url'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'图片路径',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'path'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'附件地址',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'fujian'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化标题',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_title'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化关键字',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_keywords'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化描述',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_description'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'内容',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'content'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'排序',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'paixu'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'点击数',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'hits'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'备注',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'remark'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'添加日期',
|
|
'user', @CurrentUser, 'table', 'tb_news', 'column', 'add_time'
|
|
go
|