No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 

90 líneas
3.2 KiB

--
create table tb_attribute (
id int identity, --id
class_id int not null, --id
title nvarchar(100) null, --
guid nvarchar(50) null, --guid
parent_id int null default 0, --id
class_list nvarchar(500) null, --
class_layer int null default 0, --
paixu int null default 0, --
url nvarchar(255) null default '', --
path nvarchar(255) null default '', --
content nvarchar(500) null, --
add_time datetime null default getdate() --
constraint PK_TB_ATTRIBUTE primary key (id)
)
go
execute sp_addextendedproperty 'MS_Description',
'添加日期',
'user', 'dbo', 'table', 'tb_attribute', 'column', 'add_time'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'自增ID',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'类别',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'名称',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'title'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'guid',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'guid'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'父级',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'parent_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'栏目集',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_list'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'深度',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_layer'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'排序',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'paixu'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'链接地址',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'url'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'图片路径',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'path'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'内容',
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'content'
go