|
--产品颜色分类
|
|
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
|