Showing
1 changed file
with
2 additions
and
30 deletions
@@ -34,17 +34,12 @@ Alter table erp_product.product ADD column `founder` int(11) COMMENT '操作人' | @@ -34,17 +34,12 @@ Alter table erp_product.product ADD column `founder` int(11) COMMENT '操作人' | ||
34 | 34 | ||
35 | -- 1.2 商品(erp_product.goods) | 35 | -- 1.2 商品(erp_product.goods) |
36 | 36 | ||
37 | - Alter table erp_product.goods ADD column `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0下架 1 上架'; | ||
38 | - -- 需要将yh_shops 的goods状态割接到 erp_product.goods | ||
39 | 37 | ||
40 | - Alter table erp_product.goods ADD column `factory_goods_name` varchar(50) DEFAULT NULL COMMENT '厂家颜色'; | ||
41 | 38 | ||
39 | +-- Alter table erp_product.goods ADD column `factory_goods_name` varchar(50) DEFAULT NULL COMMENT '厂家颜色'; | ||
42 | 40 | ||
43 | 41 | ||
44 | --- 1.3 商品库存(erp_product.storage) | ||
45 | 42 | ||
46 | - Alter table erp_product.storage ADD column `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0下架 1 上架'; | ||
47 | - -- 需要将yh_shops 的storage状态割接到 erp_product.storage | ||
48 | 43 | ||
49 | 44 | ||
50 | 45 | ||
@@ -94,22 +89,10 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | @@ -94,22 +89,10 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | ||
94 | 89 | ||
95 | 90 | ||
96 | 91 | ||
97 | --- 2.2 搭配信息 | ||
98 | --- Alter table product_collocation add column `product_skn` int(11) unsigned DEFAULT '0'; | ||
99 | --- create index collocation_skn on product_collocation(product_skn); | ||
100 | 92 | ||
101 | --- 2.3 商品封面 | ||
102 | - Alter table goods_images add column `product_skc` int(11) unsigned DEFAULT '0'; | ||
103 | - Alter table goods_images add column `product_skn` int(11) unsigned DEFAULT '0'; | ||
104 | - create index goods_img_skn on goods_images(`product_skn`,`is_default`,`status`); | ||
105 | - create index goods_img_skc on goods_images(`product_skc`,`is_default`,`status`); | ||
106 | - create index goods_img_skc_skn on goods_images(`product_skc`,`product_skn`); | ||
107 | 93 | ||
108 | 94 | ||
109 | 95 | ||
110 | --- 2.4 舒适度等扩展信息(改为查询商品基础规则,此表不再使用) | ||
111 | --- Alter table product_special_attr add column `product_skn` int(11) unsigned DEFAULT '0'; | ||
112 | --- create index special_attr_skn on product_special_attr(`product_skn`); | ||
113 | 96 | ||
114 | 97 | ||
115 | 98 | ||
@@ -125,16 +108,6 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | @@ -125,16 +108,6 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | ||
125 | 108 | ||
126 | 109 | ||
127 | 110 | ||
128 | --- 2.6 商品描述信息 | ||
129 | --- Alter table product_intro ADD column `product_skn` int(11) unsigned default 0; | ||
130 | --- create index intro_skn on product_intro(`product_skn`); | ||
131 | - | ||
132 | - | ||
133 | --- 2.7 搜索关键词 | ||
134 | --- Alter table product_keywords ADD column `product_skn` int(11) unsigned default 0; | ||
135 | --- create index keywords_skn on product_keywords(`product_skn`); | ||
136 | - | ||
137 | - | ||
138 | -- 2.8 平台商品属性值表 | 111 | -- 2.8 平台商品属性值表 |
139 | 112 | ||
140 | CREATE TABLE product_attribute_property_values ( | 113 | CREATE TABLE product_attribute_property_values ( |
@@ -155,8 +128,7 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | @@ -155,8 +128,7 @@ Alter table product_shop_relation add primary key(product_skn, shop_id); | ||
155 | 128 | ||
156 | 129 | ||
157 | 130 | ||
158 | --- 3.2 上架的时候需要插入 product_id goods_id 数据割接 老数据需要通过product_id 查询product_skn 插入数据库 | ||
159 | --- goods_images | 131 | + |
160 | 132 | ||
161 | 133 | ||
162 | -- 产品参数 | 134 | -- 产品参数 |
-
Please register or login to post a comment