You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
4.9 KiB
107 lines
4.9 KiB
|
|
alter table fenxiao_records add goodsId bigint not Null;
|
|
alter table fenxiao_records add type int not Null;
|
|
|
|
alter table sms_coupon_history add min_point decimal not Null;
|
|
|
|
alter table pms_product add is_fenxiao int ;
|
|
alter table oms_cart_item add is_fenxiao int ;
|
|
|
|
CREATE TABLE `mallplus_keyword` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`keyword` varchar(127) NOT NULL DEFAULT '' COMMENT '关键字',
|
|
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '关键字的跳转链接',
|
|
`is_hot` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是热门关键字',
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是默认关键字',
|
|
`sort_order` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
|
|
`add_time` datetime DEFAULT NULL COMMENT '创建时间',
|
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
|
`deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COMMENT='关键字表';
|
|
|
|
CREATE TABLE `mallplus_search_history` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL COMMENT '用户表的用户ID',
|
|
`keyword` varchar(63) NOT NULL COMMENT '搜索关键字',
|
|
`from` varchar(63) NOT NULL DEFAULT '' COMMENT '搜索来源,如pc、wx、app',
|
|
`add_time` datetime DEFAULT NULL COMMENT '创建时间',
|
|
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
|
`deleted` tinyint(1) DEFAULT '0' COMMENT '逻辑删除',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='搜索历史表'
|
|
|
|
alter table pms_product alter column is_fenxiao set default 0;
|
|
|
|
alter table pms_product_attribute_category add column style set default 0;
|
|
|
|
alter table pms_product_attribute_category add style int ;
|
|
alter table pms_product_attribute_category add show_index int ;
|
|
|
|
|
|
-- 20200318 会员等级计算 会员升级 会员购买
|
|
alter table pms_product add is_vip int not null default 0; # 是否会员商品
|
|
|
|
alter table oms_order add vip_amount DECIMAL not null default 0; # 会员优惠价格
|
|
|
|
-- 20200321 商品分拥
|
|
alter table oms_order_item add is_fenxiao int not null default 0; # 是否分拥
|
|
|
|
alter table oms_order_item add invite_memberId int not null default 0; # 分佣商品 链接带过来的会员编号
|
|
|
|
|
|
-- 20200330 余额
|
|
alter table ums_member_blance_log add status int not null default 0; # 审核状态
|
|
alter table ums_member_blance_log add with_draw_type int not null default 0; # 提现类型 1 银行卡 2 微信 3支付宝
|
|
alter table ums_member_blance_log add obj_id int not null default 0; # 关联提现类型的编号
|
|
alter table ums_member_blance_log add objname varchar(127) ; # 关联提现类型的编号
|
|
|
|
alter table ums_member_receive_address add area_id varchar(12) ;
|
|
|
|
alter table pms_product_attribute_value add sort int default 0; #
|
|
|
|
|
|
-- 门店
|
|
CREATE TABLE `sys_shop` (
|
|
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`store_name` varchar(125) DEFAULT NULL COMMENT '门店名称',
|
|
`mobile` varchar(13) DEFAULT NULL COMMENT '门店电话/手机号',
|
|
`linkman` varchar(32) DEFAULT NULL COMMENT '门店联系人',
|
|
`logo` char(32) DEFAULT NULL COMMENT '门店logo',
|
|
`area_id` int(10) unsigned DEFAULT NULL COMMENT '门店地区id',
|
|
`address` varchar(200) DEFAULT NULL COMMENT '门店详细地址',
|
|
`coordinate` varchar(50) DEFAULT NULL,
|
|
`latitude` varchar(40) DEFAULT NULL COMMENT '纬度',
|
|
`longitude` varchar(40) DEFAULT NULL COMMENT '经度',
|
|
`ctime` datetime DEFAULT NULL COMMENT '创建时间',
|
|
`utime` datetime DEFAULT NULL COMMENT '更新时间',
|
|
`store_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
|
|
|
|
alter table sys_permission add component varchar(42) ;
|
|
|
|
update sys_permission set component ='Layout' where pid=0;
|
|
|
|
update sys_permission set component = concat('pms','/',uri,'/index') where type=1 and pid=1;
|
|
|
|
update sys_permission set component = concat('sys','/',uri,'/index') where type=1 and pid=19;
|
|
|
|
update sys_permission set component = concat('oms','/',uri,'/index') where type=1 and pid=23;
|
|
|
|
update sys_permission set component = concat('sms','/',uri,'/index') where type=1 and pid=31;
|
|
|
|
update sys_permission set component = concat('marking','/',uri,'/index') where type=1 and pid=350;
|
|
|
|
|
|
update sys_permission set component = concat('cms','/',uri,'/index') where type=1 and pid=47;
|
|
update sys_permission set component = concat('build','/',uri,'/index') where type=1 and pid=230;
|
|
update sys_permission set component = concat('fenxiao','/',uri,'/index') where type=1 and pid=314;
|
|
update sys_permission set component = concat('jifen','/',uri,'/index') where type=1 and pid=313;
|
|
|
|
update sys_permission set component = concat('setting','/',uri,'/index') where type=1 and pid=500;
|
|
|
|
update sys_permission set component = concat('tool','/',uri,'/index') where type=1 and pid=351;
|
|
|
|
update sys_permission set component = concat('ums','/',uri,'/index') where type=1 and pid=43;
|
|
|
|
|