Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

218 wiersze
8.1 KiB

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