diff --git a/data/address.sql b/data/address.sql deleted file mode 100644 index 54d9961..0000000 --- a/data/address.sql +++ /dev/null @@ -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 - diff --git a/data/tb_albums.sql b/data/tb_albums.sql deleted file mode 100644 index 18c1e72..0000000 --- a/data/tb_albums.sql +++ /dev/null @@ -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 diff --git a/data/tb_attribute.sql b/data/tb_attribute.sql deleted file mode 100644 index 652c520..0000000 --- a/data/tb_attribute.sql +++ /dev/null @@ -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 - diff --git a/data/tb_attribute_value.sql b/data/tb_attribute_value.sql deleted file mode 100644 index 9d27358..0000000 --- a/data/tb_attribute_value.sql +++ /dev/null @@ -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 diff --git a/data/tb_bianliang.sql b/data/tb_bianliang.sql deleted file mode 100644 index a2a0401..0000000 --- a/data/tb_bianliang.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_coupon.sql b/data/tb_coupon.sql deleted file mode 100644 index cfbb5a6..0000000 --- a/data/tb_coupon.sql +++ /dev/null @@ -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 - - - diff --git a/data/tb_couponuser.sql b/data/tb_couponuser.sql deleted file mode 100644 index 0f39b84..0000000 --- a/data/tb_couponuser.sql +++ /dev/null @@ -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 - - - diff --git a/data/tb_databackup.sql b/data/tb_databackup.sql deleted file mode 100644 index 425cc63..0000000 --- a/data/tb_databackup.sql +++ /dev/null @@ -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 diff --git a/data/tb_freight.sql b/data/tb_freight.sql deleted file mode 100644 index dd2e219..0000000 --- a/data/tb_freight.sql +++ /dev/null @@ -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 - diff --git a/data/tb_manager.sql b/data/tb_manager.sql deleted file mode 100644 index 4853afd..0000000 --- a/data/tb_manager.sql +++ /dev/null @@ -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 diff --git a/data/tb_manager_log.sql b/data/tb_manager_log.sql deleted file mode 100644 index eec5219..0000000 --- a/data/tb_manager_log.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_manager_role.sql b/data/tb_manager_role.sql deleted file mode 100644 index e5f796e..0000000 --- a/data/tb_manager_role.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_manager_role_value.sql b/data/tb_manager_role_value.sql deleted file mode 100644 index 696e533..0000000 --- a/data/tb_manager_role_value.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_message.sql b/data/tb_message.sql deleted file mode 100644 index ff9d607..0000000 --- a/data/tb_message.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_news.sql b/data/tb_news.sql deleted file mode 100644 index 9c08958..0000000 --- a/data/tb_news.sql +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/tb_pinpai.sql b/data/tb_pinpai.sql deleted file mode 100644 index 655ef95..0000000 --- a/data/tb_pinpai.sql +++ /dev/null @@ -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 - - diff --git a/data/tb_product.sql b/data/tb_product.sql deleted file mode 100644 index b65e044..0000000 --- a/data/tb_product.sql +++ /dev/null @@ -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 diff --git a/data/tb_product_attribute_list.sql b/data/tb_product_attribute_list.sql deleted file mode 100644 index d36ec1b..0000000 --- a/data/tb_product_attribute_list.sql +++ /dev/null @@ -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 diff --git a/data/tb_product_attribute_value.sql b/data/tb_product_attribute_value.sql deleted file mode 100644 index a5f8453..0000000 --- a/data/tb_product_attribute_value.sql +++ /dev/null @@ -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 diff --git a/data/tb_product_class.sql b/data/tb_product_class.sql deleted file mode 100644 index 84e744f..0000000 --- a/data/tb_product_class.sql +++ /dev/null @@ -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