...
|
...
|
@@ -34,17 +34,12 @@ Alter table erp_product.product ADD column `founder` int(11) COMMENT '操作人' |
|
|
|
|
|
-- 1.2 商品(erp_product.goods)
|
|
|
|
|
|
Alter table erp_product.goods ADD column `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0下架 1 上架';
|
|
|
-- 需要将yh_shops 的goods状态割接到 erp_product.goods
|
|
|
|
|
|
Alter table erp_product.goods ADD column `factory_goods_name` varchar(50) DEFAULT NULL COMMENT '厂家颜色';
|
|
|
|
|
|
-- Alter table erp_product.goods ADD column `factory_goods_name` varchar(50) DEFAULT NULL COMMENT '厂家颜色';
|
|
|
|
|
|
|
|
|
-- 1.3 商品库存(erp_product.storage)
|
|
|
|
|
|
Alter table erp_product.storage ADD column `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0下架 1 上架';
|
|
|
-- 需要将yh_shops 的storage状态割接到 erp_product.storage
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -94,22 +89,10 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); |
|
|
|
|
|
|
|
|
|
|
|
-- 2.2 搭配信息
|
|
|
-- Alter table product_collocation add column `product_skn` int(11) unsigned DEFAULT '0';
|
|
|
-- create index collocation_skn on product_collocation(product_skn);
|
|
|
|
|
|
-- 2.3 商品封面
|
|
|
Alter table goods_images add column `product_skc` int(11) unsigned DEFAULT '0';
|
|
|
Alter table goods_images add column `product_skn` int(11) unsigned DEFAULT '0';
|
|
|
create index goods_img_skn on goods_images(`product_skn`,`is_default`,`status`);
|
|
|
create index goods_img_skc on goods_images(`product_skc`,`is_default`,`status`);
|
|
|
create index goods_img_skc_skn on goods_images(`product_skc`,`product_skn`);
|
|
|
|
|
|
|
|
|
|
|
|
-- 2.4 舒适度等扩展信息(改为查询商品基础规则,此表不再使用)
|
|
|
-- Alter table product_special_attr add column `product_skn` int(11) unsigned DEFAULT '0';
|
|
|
-- create index special_attr_skn on product_special_attr(`product_skn`);
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -123,16 +106,6 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); |
|
|
Alter table product_timing modify column shelve_time int(10) unsigned COMMENT '预上架架时间';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 2.6 商品描述信息
|
|
|
-- Alter table product_intro ADD column `product_skn` int(11) unsigned default 0;
|
|
|
-- create index intro_skn on product_intro(`product_skn`);
|
|
|
|
|
|
|
|
|
-- 2.7 搜索关键词
|
|
|
-- Alter table product_keywords ADD column `product_skn` int(11) unsigned default 0;
|
|
|
-- create index keywords_skn on product_keywords(`product_skn`);
|
|
|
|
|
|
|
|
|
-- 2.8 平台商品属性值表
|
...
|
...
|
@@ -155,8 +128,7 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); |
|
|
|
|
|
|
|
|
|
|
|
-- 3.2 上架的时候需要插入 product_id goods_id 数据割接 老数据需要通过product_id 查询product_skn 插入数据库
|
|
|
-- goods_images
|
|
|
|
|
|
|
|
|
|
|
|
-- 产品参数
|
...
|
...
|
|