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.

55 lines
2.1 KiB

--
create table tb_product_attribute_value (
id int identity, --id
class_id nvarchar(500) not null, --
product_id int not null default 0, --id
count int not null default 0, --
price decimal(18,2) not null, --
code nvarchar(255) null default '', --
barcode nvarchar(255) null, --
constraint PK_TB_PRODUCT_ATTRIBUTE_VALUE primary key (id)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'自增ID',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'类别',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'class_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'产品id',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'product_id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'数量',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'count'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'价格',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'price'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'商家编码',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'code'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'商品条形码',
'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'barcode'
go