--属性表
|
|
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
|
|
|