From 41cd57df2dc57839f5987489fbf08005f2570095 Mon Sep 17 00:00:00 2001 From: xiaofeng Date: Tue, 2 Jul 2019 23:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AD=97=E6=AE=B5=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/sql/mall_user.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/sql/mall_user.sql b/docs/sql/mall_user.sql index cdebac444..7500b7410 100644 --- a/docs/sql/mall_user.sql +++ b/docs/sql/mall_user.sql @@ -129,21 +129,21 @@ CREATE TABLE `users` ( ) ENGINE=InnoDB AUTO_INCREMENT=108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- --- Table structure for user_sku_collections +-- Table structure for user_spu_collections -- ---------------------------- -DROP TABLE IF EXISTS `user_sku_collections`; -CREATE TABLE `user_sku_collections` ( +DROP TABLE IF EXISTS `user_spu_collections`; +CREATE TABLE `user_spu_collections` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id自增长', `user_id` int(11) NOT NULL COMMENT '用户id', `nickname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名称', - `sku_id` int(11) NOT NULL COMMENT '商品id', - `sku_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品名字', - `sku_image` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图片名字', + `spu_id` int(11) NOT NULL COMMENT '商品id', + `spu_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品名字', + `spu_image` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图片名字', `create_time` datetime(0) NOT NULL COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', `deleted` smallint(2) NOT NULL COMMENT '删除状态', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户_商品_收藏记录表' ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户_商品_收藏记录表' ROW_FORMAT = Dynamic;