--属性值
|
|
create table tb_attribute_value (
|
|
id int identity, --自增id
|
|
class_id int not null default 0, --类别id
|
|
parent_id int not null default 0, --父级id
|
|
guid nvarchar(50) null, --guid
|
|
title nvarchar(100) null, --名称
|
|
path nvarchar(255) null default '', --路径
|
|
content nvarchar(255) null, --内容
|
|
paixu int null default 0, --排序
|
|
status int null default 0 , --状态
|
|
add_time datetime null default getdate(), --添加日期
|
|
constraint PK_TB_ATTRIBUTE_VALUE primary key (id)
|
|
)
|
|
go
|
|
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'添加日期',
|
|
'user', 'dbo', 'table', 'tb_attribute_value', 'column', 'add_time'
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'自增ID',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'父级ID',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'parent_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'栏目ID',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'class_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'guid',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'guid'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'名称',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'title'
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'图片路径',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'path'
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'内容',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'content'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'排序',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'paixu'
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'状态',
|
|
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'status'
|
|
go
|