Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

132 righe
4.9 KiB

--
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