@ -1,111 +0,0 @@ | |||
--订单地址管理 | |||
create table tb_address ( | |||
id int identity, --自增ID | |||
userid int null default 0, --会员ID | |||
name nvarchar(100) null, --收件人 | |||
mobile nvarchar(20) null default'', --联系电话 | |||
zipcode nvarchar(20) null default'', --邮政编码 | |||
province nvarchar(100) null default'', --省 | |||
city nvarchar(100) null default'', --市 | |||
area nvarchar(100) null default'', --区 | |||
xxaddress nvarchar(255) null default'', --详细地址 | |||
paixu int null default 0, --排序 | |||
state int null default 0, --是否设为默认收货地址{0/是,1/否} | |||
stateaddress int null default 0, --是否为有效地址{0/是,1/否} | |||
add_time datetime null default getdate(), --地址创建日期 | |||
constraint PK_TB_ADDRESS primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'会员ID', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'userid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'收件人', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'联系电话', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'mobile' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'邮政编码', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'zipcode' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'省', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'province' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'市', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'city' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'区', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'area' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'详细地址', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'xxaddress' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'是否设为默认收货地址{0/是,1/否}', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'state' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'是否为有效地址{0/是,1/否}', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'stateaddress' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'地址创建日期', | |||
'user', @CurrentUser, 'table', 'tb_address', 'column', 'add_time' | |||
go | |||
@ -1,49 +0,0 @@ | |||
--相册 | |||
create table tb_albums ( | |||
id int identity, --自增ID | |||
paixu int null default 0, --排序 | |||
guid nvarchar(50) null, --guid | |||
big_img nvarchar(255) null, --大图路径 | |||
small_img nvarchar(255) null, --缩略图路径 | |||
remark nvarchar(500) null default '', --备注 | |||
constraint PK_TB_ALBUMS primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增ID', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'guid', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'guid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'大图路径', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'big_img' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'缩略图路径', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'small_img' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'备注', | |||
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'remark' | |||
go |
@ -1,90 +0,0 @@ | |||
--属性表 | |||
create table tb_attribute ( | |||
id int identity, --自增id | |||
class_id int not null, --分类id | |||
title nvarchar(100) null, --标题 | |||
guid nvarchar(50) null, --guid | |||
parent_id int null default 0, --父级id | |||
class_list nvarchar(500) null, --栏目集 | |||
class_layer int null default 0, --深度 | |||
paixu int null default 0, --排序 | |||
url nvarchar(255) null default '', --链接 | |||
path nvarchar(255) null default '', --图片路径 | |||
content nvarchar(500) null, --内容 | |||
add_time datetime null default getdate() --添加日期 | |||
constraint PK_TB_ATTRIBUTE primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加日期', | |||
'user', 'dbo', 'table', 'tb_attribute', 'column', 'add_time' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增ID', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'类别', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'名称', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'guid', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'guid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'父级', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'parent_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'栏目集', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_list' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'深度', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_layer' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'链接地址', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'url' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'图片路径', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'path' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'内容', | |||
'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'content' | |||
go | |||
@ -1,78 +0,0 @@ | |||
--属性值 | |||
create table tb_attribute_value ( | |||
id int identity, --自增id | |||
class_id int not null default 0, --类别id | |||
parent_id int not null default 0, --父级id | |||
guid nvarchar(50) null, --guid | |||
title nvarchar(100) null, --名称 | |||
path nvarchar(255) null default '', --路径 | |||
content nvarchar(255) null, --内容 | |||
paixu int null default 0, --排序 | |||
status int null default 0 , --状态 | |||
add_time datetime null default getdate(), --添加日期 | |||
constraint PK_TB_ATTRIBUTE_VALUE primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加日期', | |||
'user', 'dbo', 'table', 'tb_attribute_value', 'column', 'add_time' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增ID', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'父级ID', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'parent_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'栏目ID', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'class_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'guid', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'guid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'名称', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'图片路径', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'path' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'内容', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'content' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态', | |||
'user', @CurrentUser, 'table', 'tb_attribute_value', 'column', 'status' | |||
go |
@ -1,41 +0,0 @@ | |||
--常用变量 | |||
create table tb_bianliang ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
keyid nvarchar(255) null, --key | |||
zhi ntext null, --值 | |||
beizhu ntext null, --备注 | |||
status int null default 0, --状态(0正常/1禁止) | |||
add_time datetime null default getdate(), --添加时间 | |||
constraint PK_TB_BIANLIANG primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'id' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'paixu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'key', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'keyid' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'值', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'zhi' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'备注', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'beizhu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态(0正常/1禁止)', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'status' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加时间', | |||
'user', 'dbo', 'table', 'tb_bianliang', 'column', 'add_time' | |||
go |
@ -1,66 +0,0 @@ | |||
--优惠券表 | |||
create table tb_coupon ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
name nvarchar(255) null default '', --优惠券名称 | |||
start_time datetime null, --优惠券开始时间 | |||
end_time datetime null, --优惠券结束时间 | |||
number int null default 0, --优惠券个数 | |||
purchase_amount decimal(18,2) null, --优惠券满购金额 | |||
coupon_amount decimal(18,2) null, --优惠券金额 | |||
status int null default 0, --状态(0显示/1隐藏) | |||
add_time datetime null default getdate(), --添加时间 | |||
constraint PK_TB_COUPON primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'id' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'paixu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券名称', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'name' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券开始时间', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'start_time' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券结束时间', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'end_time' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券个数', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'number' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券满购金额', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'purchase_amount' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券金额', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'coupon_amount' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态{1/显示,0/不显示}', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'status' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加时间', | |||
'user', 'dbo', 'table', 'tb_coupon', 'column', 'add_time' | |||
go | |||
@ -1,51 +0,0 @@ | |||
--优惠券表 | |||
create table tb_couponuser ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
couponid int null default 0, --优惠券阿弟 | |||
name nvarchar(255) null default '', --领取优惠券用户名 | |||
couponstatus int null default 0, --优惠券使用状态(0未使用/1已使用) | |||
add_time datetime null default getdate(), --添加时间 | |||
constraint PK_TB_COUPONUSER primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'id' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'paixu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券阿弟', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'couponid' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'领取优惠券用户名', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'name' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优惠券使用状态(0未使用/1已使用)', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'couponstatus' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加时间', | |||
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'add_time' | |||
go | |||
@ -1,48 +0,0 @@ | |||
--数据库备份 | |||
create table tb_databackup ( | |||
id int identity, --自增阿弟 | |||
title nvarchar(100) null, --标题 | |||
paixu int null, --排序 | |||
storage nvarchar(100) null, --内存大小 | |||
user_name nvarchar(100) null, --用户名称 | |||
add_time datetime null default getdate(), --添加日期 | |||
constraint PK_TB_DATABACKUP primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'标题', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'内存大小', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'storage' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'用户名称', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'user_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加日期', | |||
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'add_time' | |||
go |
@ -1,96 +0,0 @@ | |||
--订单地址管理 | |||
create table tb_freight ( | |||
id int identity, --自增阿弟 | |||
title nvarchar(100) null, --物流方式 | |||
gudingyf nvarchar(255) null default'', --固定运费 | |||
yuanmian nvarchar(255) null default'', --满元免 | |||
yuanjifei nvarchar(255) null default'', --不满元计费 | |||
jianmian nvarchar(255) null default'', --满件免 | |||
jianjifei nvarchar(255) null default'', --不满件计费 | |||
content nvarchar(255) null default'', --整合内容 | |||
paixu int null default 0, --排序 | |||
state int null default 0, --是否使用{0/是,1/否} | |||
add_time datetime null default getdate(), --创建日期 | |||
constraint PK_TB_FREIGHT primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'物流方式', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'固定运费', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'gudingyf' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'满元免', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'yuanmian' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'不满元计费', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'yuanjifei' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'满件免', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'jianmian' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'不满件计费', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'jianjifei' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'整合内容', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'content' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'是否使用{0/是,1/否}', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'state' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'创建日期', | |||
'user', @CurrentUser, 'table', 'tb_freight', 'column', 'add_time' | |||
go | |||
@ -1,90 +0,0 @@ | |||
--管理员表 | |||
create table tb_manager ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
role_id int null default 0, --角色阿弟 | |||
department_id int null default 0, --部门阿弟 | |||
role_type int null default 0, --角色类型 | |||
user_name nvarchar(50) null, --用户名 | |||
user_pwd nvarchar(50) null, --密码 | |||
real_name nvarchar(50) null, --真实姓名 | |||
email nvarchar(50) null, --邮箱 | |||
telephone nvarchar(50) null, --联系电话 | |||
is_lock int null default 0, --状态(0正常/1禁用) | |||
add_time datetime null default getdate(), --添加时间 | |||
constraint PK_TB_MANAGER primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'角色阿弟', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'部门阿弟', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'department_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'角色类型', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_type' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'密码', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_pwd' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'用户名', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'真实姓名', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'real_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'邮箱', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'email' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'联系电话', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'telephone' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态(0正常/1禁用)', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'is_lock' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加时间', | |||
'user', @CurrentUser, 'table', 'tb_manager', 'column', 'add_time' | |||
go |
@ -1,55 +0,0 @@ | |||
--登录日志 | |||
create table tb_manager_log ( | |||
id int identity, --自增ID | |||
user_id int null, --用户ID | |||
user_name nvarchar(100) null, --用户名 | |||
action_type nvarchar(100) null, --类型 | |||
note nvarchar(255) null, --日志 | |||
login_ip nvarchar(30) null, --登录IP | |||
login_time datetime null default getdate(), --登录时间 | |||
constraint PK_TB_MANAGER_LOG primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增ID', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'用户ID', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'user_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'用户名', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'user_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'类型', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'action_type' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'日志', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'note' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'登录IP', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'login_ip' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'登录时间', | |||
'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'login_time' | |||
go |
@ -1,27 +0,0 @@ | |||
--½ÇÉ« | |||
create table tb_manager_role ( | |||
id int identity, --×ÔÔöID | |||
role_name nvarchar(100) null, --½ÇÉ«Ãû³Æ | |||
role_type tinyint null, --½ÇÉ«ÀàÐÍ | |||
constraint PK_TB_MANAGER_ROLE primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'×ÔÔöID', | |||
'user', @CurrentUser, 'table', 'tb_manager_role', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'½ÇÉ«Ãû³Æ', | |||
'user', @CurrentUser, 'table', 'tb_manager_role', 'column', 'role_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'½ÇÉ«ÀàÐÍ', | |||
'user', @CurrentUser, 'table', 'tb_manager_role', 'column', 'role_type' | |||
go |
@ -1,41 +0,0 @@ | |||
--½ÇɫȨÏÞÖµ | |||
create table tb_manager_role_value ( | |||
id int identity, --×ÔÔöID | |||
role_id int null, --½ÇÉ«ID | |||
channel_name nvarchar(255) null, --ƵµÀÃû³Æ | |||
channel_id int null, --ƵµÀID | |||
action_type nvarchar(100) null, --ȨÏÞÀàÐÍ | |||
constraint PK_TB_MANAGER_ROLE_VALUE primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'×ÔÔöID', | |||
'user', @CurrentUser, 'table', 'tb_manager_role_value', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'½ÇÉ«ID', | |||
'user', @CurrentUser, 'table', 'tb_manager_role_value', 'column', 'role_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'ƵµÀÃû³Æ', | |||
'user', @CurrentUser, 'table', 'tb_manager_role_value', 'column', 'channel_name' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'ƵµÀID', | |||
'user', @CurrentUser, 'table', 'tb_manager_role_value', 'column', 'channel_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'ȨÏÞÀàÐÍ', | |||
'user', @CurrentUser, 'table', 'tb_manager_role_value', 'column', 'action_type' | |||
go |
@ -1,27 +0,0 @@ | |||
--在线留言 | |||
create table tb_message ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
title nvarchar(255) null default '', --留言主题 | |||
add_time datetime null default getdate(), --添加日期 | |||
constraint PK_TB_MESSAGE primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', 'dbo', 'table', 'tb_message', 'column', 'id' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', 'dbo', 'table', 'tb_message', 'column', 'paixu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'留言主题', | |||
'user', 'dbo', 'table', 'tb_message', 'column', 'title' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加日期', | |||
'user', 'dbo', 'table', 'tb_message', 'column', 'add_time' | |||
go |
@ -1,132 +0,0 @@ | |||
--新闻表 | |||
create table tb_news ( | |||
id int identity, --自增阿弟 | |||
channel_id int not null default 0, --频道阿弟 | |||
category_id int not null default 0, --栏目类别阿弟 | |||
guid nvarchar(50) null, --既有阿弟 | |||
title 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_keywords nvarchar(255) null default '', --优化关键字 | |||
seo_description nvarchar(255) null default '', --优化描述 | |||
content ntext null, --内容 | |||
paixu int null default 0, --排序 | |||
hits int null default 0, --点击量 | |||
remark nvarchar(255) null default '', --备注 | |||
target int null default 0, --打开方式(0新窗口/1原窗口) | |||
add_time datetime null default getdate(), --添加日期 | |||
state int null default 0, --状态(0显示/1隐藏) | |||
constraint PK_TB_NEWS primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态(0显示/1隐藏)', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'state' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'频道阿弟', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'channel_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'栏目类别阿弟', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'category_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'打开方式(0新窗口/1原窗口)', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'target' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'既有阿弟', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'guid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'文章标题', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'链接地址', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'url' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'图片路径', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'path' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'附件地址', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'fujian' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优化标题', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优化关键字', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_keywords' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'优化描述', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_description' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'内容', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'content' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'点击数', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'hits' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'备注', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'remark' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加日期', | |||
'user', @CurrentUser, 'table', 'tb_news', 'column', 'add_time' | |||
go |
@ -1,38 +0,0 @@ | |||
--产品品牌表 | |||
create table tb_pinpai ( | |||
id int identity, --自增阿弟 | |||
paixu int null default 0, --排序 | |||
name nvarchar(255) null, --品牌名称 | |||
beizhu ntext null, --备注 | |||
status int null default 0, --状态{1/显示,0/不显示} | |||
add_time datetime null default getdate(), --添加时间 | |||
constraint PK_TB_PINPAI primary key (id) | |||
) | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'自增阿弟', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'id' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'排序', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'paixu' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'品牌名称', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'name' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'状态{1/显示,0/不显示}', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'status' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'添加时间', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'add_time' | |||
go | |||
execute sp_addextendedproperty 'MS_Description', | |||
'备注', | |||
'user', 'dbo', 'table', 'tb_pinpai', 'column', 'beizhu' | |||
go | |||
@ -1,218 +0,0 @@ | |||
--产品中心 | |||
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 |
@ -1,48 +0,0 @@ | |||
--产品颜色分类 | |||
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 |
@ -1,55 +0,0 @@ | |||
--产品属性值 | |||
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 |
@ -1,118 +0,0 @@ | |||
--으커깊 | |||
create table tb_product_class ( | |||
id int identity, --菱藤id | |||
channel_id int not null default 0, --틉돛각뒬 | |||
title nvarchar(100) null, --깃痙 | |||
guid nvarchar(50) null, --guid | |||
parent_id int null default 0, --만섬id | |||
class_list nvarchar(500) null, --으커섞 | |||
attribute_list nvarchar(500) null, --橄昑섞 | |||
class_layer int null default 0, --�똑 | |||
paixu int null default 0, --탤埼 | |||
url nvarchar(255) null default '', --졍쌈 | |||
path nvarchar(255) null default '', --暠튬쨌쓺 | |||
content ntext null, --코휭 | |||
seo_title nvarchar(255) null default '', --seo깃痙 | |||
seo_keywords nvarchar(255) null default '', --seo밑숩俚 | |||
seo_description nvarchar(255) null default '', --seo췄甘 | |||
state int null default 0, --榴檄(0鞫刻/1茶꾜) | |||
constraint PK_TB_PRODUCT_CLASS primary key (id) | |||
) | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'菱藤ID', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'榴檄(0鞫刻/1茶꾜)', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'state' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'틉돛각뒬', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'channel_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'츰냔', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'guid', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'guid' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'만섬', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'parent_id' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'으커섞', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'class_list' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'橄昑섞', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'attribute_list' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'�똑', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'class_layer' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'탤埼', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'paixu' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'졍쌈뒈囹', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'url' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'暠튬쨌쓺', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'path' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'코휭', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'content' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'膽뺏깃痙', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_title' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'膽뺏밑숩俚', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_keywords' | |||
go | |||
declare @CurrentUser sysname | |||
select @CurrentUser = user_name() | |||
execute sp_addextendedproperty 'MS_Description', | |||
'膽뺏췄甘', | |||
'user', @CurrentUser, 'table', 'tb_product_class', 'column', 'seo_description' | |||
go |