|
|
--产品中心
|
|
create table tb_product (
|
|
id int identity, --自增id
|
|
class_id nvarchar(255) null default '', --类别id
|
|
parent_id int not null default 0, --父级id
|
|
guid nvarchar(50) null, --guid
|
|
name nvarchar(100) null, --名称
|
|
url nvarchar(255) null default '', --链接
|
|
path nvarchar(255) null default '', --路径
|
|
fujian nvarchar(255) null default '', --附件地址
|
|
seo_title nvarchar(255) null default '', --seo标题
|
|
seo_keywords nvarchar(255) null default '', --seo关键字
|
|
seo_description nvarchar(255) null default '', --seo描述
|
|
content ntext null, --内容
|
|
paixu int null default 0, --排序
|
|
hits int null default 0, --点击量
|
|
jifen int null default 0, --积分
|
|
status int null default 0, --状态
|
|
attribute_content ntext null, --属性值
|
|
color_content ntext null, --颜色值
|
|
attribute_value nvarchar(255) null default '', --属性值id集合
|
|
select_value ntext null default '', --当前选择值
|
|
user_id int null default 0, --用户id
|
|
priceyj decimal(18,2) null, --原价
|
|
price decimal(18,2) null, --价格
|
|
sales int null default 0, --销量
|
|
xinpin int null default 0, --新品
|
|
tejia int null default 0, --特价
|
|
remai int null default 0, --热卖
|
|
tuijian int null default 0, --推荐
|
|
add_time datetime null default getdate(), --添加日期
|
|
statebaoyou int null default 0, --是否包邮(0是/1否)
|
|
|
|
constraint PK_TB_PRODUCT primary key (id)
|
|
)
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'自增ID',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'父级ID',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'parent_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'属性值id集合',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'attribute_value'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'栏目ID',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'class_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'guid',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'guid'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'产品名称',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'name'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'链接地址',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'url'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'图片路径',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'path'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'附件地址',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'fujian'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化标题',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_title'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化关键字',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_keywords'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'优化描述',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_description'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'内容',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'content'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'排序',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'paixu'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'点击数',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'hits'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'积分',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'jifen'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'状态',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'status'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'属性值',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'attribute_content'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'颜色值',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'color_content'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'当前选择值',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'select_value'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'用户ID',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'user_id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'原价',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'priceyj'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'价格',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'price'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'销量',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'sales'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'推荐',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'tuijian'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'特价',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'tejia'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'热卖',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'remai'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'新品',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'xinpin'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'添加日期',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'add_time'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'是否包邮(0是/1否)',
|
|
'user', @CurrentUser, 'table', 'tb_product', 'column', 'statebaoyou'
|
|
go
|