You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB

--
create table tb_product_attribute_list (
id int identity, --id
attribute_id int not null, --id
attribute_value_id int not null, --id
product_id int not null default 0, --id
title nvarchar(255) null default '', --
path nvarchar(255) null default '', --
constraint PK_TB_PRODUCT_ATTRIBUTE_LIST primary key (id)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'自增ID',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'属性分类id',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'attribute_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'属性值id',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'attribute_value_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'产品id',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'product_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'名称',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'title'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'图片路径',
'user', @CurrentUser, 'table', 'tb_product_attribute_list', 'column', 'path'
go