25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.8 KiB

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