mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
docs: 更新商城和营销SQL脚本
This commit is contained in:
parent
eb6a4cc940
commit
9a6c44ee42
@ -3,7 +3,7 @@
|
||||
* MySQL5.x版本
|
||||
*/
|
||||
use mall_pms;
|
||||
|
||||
|
||||
SET NAMES utf8;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
@ -19,7 +19,7 @@ CREATE TABLE `pms_brand` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_brand
|
||||
@ -27,7 +27,8 @@ CREATE TABLE `pms_brand` (
|
||||
INSERT INTO `pms_brand` VALUES (1, '有来', 'http://a.youlai.tech:9000/default/5409e3deb5a14b8fa8cb4275dee0e25d.png', 1, '2021-07-11 19:56:58', '2021-07-11 20:02:54');
|
||||
INSERT INTO `pms_brand` VALUES (10, '小米', 'http://a.youlai.tech:9000/default/6a5a606fc60742919149a7861bf26cd5.jpg', 2, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
INSERT INTO `pms_brand` VALUES (11, '华硕', 'http://a.youlai.tech:9000/default/f18083f95e104a0bae3c587dee3bb2ed.png', 3, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
INSERT INTO `pms_brand` VALUES (20, '华为', NULL, 1, '2022-05-06 23:08:33', '2022-05-06 23:08:33');
|
||||
INSERT INTO `pms_brand` VALUES (20, '华为', 'https://oss.youlai.tech/default/ff61bd639b23491d8f2aa85d09fcf788.jpg', 1, '2022-05-06 23:08:33', '2022-05-06 23:08:33');
|
||||
INSERT INTO `pms_brand` VALUES (33, '惠普', 'https://oss.youlai.tech/default/4cf579add9544c6eaafb41ce1131559e.gif', 1, '2022-07-07 00:12:16', '2022-07-07 00:12:16');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category
|
||||
@ -44,29 +45,19 @@ CREATE TABLE `pms_category` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 96 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_category
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_category` VALUES (3, '手机配件', 0, 1, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (3, '手机配件', 0, 1, NULL, 2, 1, NULL, '2022-07-07 22:56:53');
|
||||
INSERT INTO `pms_category` VALUES (4, '智能手机', 3, 2, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'https://www.youlai.tech/files/default/f4a27e240c184758942670aad9ce5639.jpg', 1, 1, NULL, '2022-03-05 16:16:16');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑', 0, 1, 'https://www.youlai.tech/files/default/776c21c1a71848069093033f461c5f4a.jpg', 1, 1, '2022-02-25 11:22:44', '2022-02-25 11:22:44');
|
||||
INSERT INTO `pms_category` VALUES (7, '游戏本', 6, 2, 'https://www.youlai.tech/files/default/f41d764d7ce64054b75fe9be5fb3f700.jpg', 1, 1, '2022-02-25 11:23:06', '2022-02-25 11:23:06');
|
||||
INSERT INTO `pms_category` VALUES (8, '轻薄本', 6, 2, 'https://www.youlai.tech/files/default/840ddc78c93d422b9929821c97f3dfbe.jpg', 2, 1, '2022-02-25 11:23:24', '2022-02-25 11:23:24');
|
||||
INSERT INTO `pms_category` VALUES (11, '联想拯救者', 7, 3, NULL, 100, 1, '2022-03-11 14:21:11', '2022-03-11 14:21:11');
|
||||
INSERT INTO `pms_category` VALUES (13, '华硕', 7, 3, NULL, 100, 1, '2022-03-11 14:23:50', '2022-03-11 14:23:50');
|
||||
INSERT INTO `pms_category` VALUES (14, '手机壳', 3, 2, NULL, 1, 1, '2022-03-15 10:16:40', '2022-03-15 10:16:40');
|
||||
INSERT INTO `pms_category` VALUES (15, '服饰', 0, 1, NULL, 1, 1, '2022-03-15 10:16:55', '2022-03-15 10:16:55');
|
||||
INSERT INTO `pms_category` VALUES (16, '男装', 15, 2, NULL, 1, 1, '2022-03-15 10:17:06', '2022-03-15 10:17:06');
|
||||
INSERT INTO `pms_category` VALUES (17, '女装', 15, 2, NULL, 1, 1, '2022-03-15 10:17:12', '2022-07-03 14:16:36');
|
||||
INSERT INTO `pms_category` VALUES (18, '水果', 0, 1, NULL, 1, 1, '2022-03-15 10:17:28', '2022-03-15 10:17:28');
|
||||
INSERT INTO `pms_category` VALUES (19, '国产水果', 18, 2, NULL, 1, 1, '2022-03-15 10:17:42', '2022-03-15 10:17:42');
|
||||
INSERT INTO `pms_category` VALUES (20, '热带水果', 18, 2, NULL, 1, 1, '2022-03-15 10:17:50', '2022-03-15 10:17:50');
|
||||
INSERT INTO `pms_category` VALUES (21, '衬衫', 16, 3, NULL, 1, 1, '2022-03-15 10:18:05', '2022-03-15 10:18:05');
|
||||
INSERT INTO `pms_category` VALUES (22, '裙子', 17, 3, NULL, 1, 1, '2022-03-15 10:18:18', '2022-03-15 10:18:18');
|
||||
INSERT INTO `pms_category` VALUES (23, '水果', 19, 3, 'https://www.youlai.tech/files/default/9204260996c9430284428d2e13b45d71.jpg', 100, 1, '2022-03-16 16:37:10', '2022-03-16 16:37:10');
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'https://oss.youlai.tech/default/6ffb37110ac2434a9882b9e8968b2887.jpg', 1, 1, NULL, '2022-07-08 00:28:38');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑办公', 0, 1, 'https://www.youlai.tech/files/default/776c21c1a71848069093033f461c5f4a.jpg', 1, 1, '2022-02-25 11:22:44', '2022-07-07 22:56:38');
|
||||
INSERT INTO `pms_category` VALUES (97, '笔记本电脑', 6, 2, NULL, 100, 1, '2022-07-08 00:10:27', '2022-07-08 00:10:27');
|
||||
INSERT INTO `pms_category` VALUES (99, '轻薄本', 97, 3, 'https://oss.youlai.tech/default/2f849b96ebb54ab3a94b1b90137f1b4d.png', 100, 1, '2022-07-08 00:14:03', '2022-07-08 00:26:52');
|
||||
INSERT INTO `pms_category` VALUES (100, '全能本', 97, 3, 'https://oss.youlai.tech/default/37cc080ec61b4ce7b0583b002568ebaa.png', 100, 1, '2022-07-08 00:14:10', '2022-07-08 00:27:01');
|
||||
INSERT INTO `pms_category` VALUES (101, '游戏本', 97, 3, 'https://oss.youlai.tech/default/5c1a2d5427534b48bc382caa55197f11.png', 100, 1, '2022-07-08 00:14:18', '2022-07-08 00:27:11');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category_attribute
|
||||
@ -81,7 +72,7 @@ CREATE TABLE `pms_category_attribute` (
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_attr_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 172 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 183 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_category_attribute
|
||||
@ -89,11 +80,6 @@ CREATE TABLE `pms_category_attribute` (
|
||||
INSERT INTO `pms_category_attribute` VALUES (34, 5, '颜色', 1, '2021-07-11 17:57:06', '2022-07-01 00:08:19');
|
||||
INSERT INTO `pms_category_attribute` VALUES (35, 5, '规格', 1, '2021-07-11 18:00:06', '2022-07-01 00:08:19');
|
||||
INSERT INTO `pms_category_attribute` VALUES (36, 5, '上市时间', 2, '2021-07-11 18:00:08', '2022-06-01 17:41:05');
|
||||
INSERT INTO `pms_category_attribute` VALUES (47, 8, '阿斯顿', 1, '2022-03-04 13:00:43', '2022-03-18 15:57:49');
|
||||
INSERT INTO `pms_category_attribute` VALUES (48, 8, '内存', 2, '2022-03-08 16:51:48', '2022-03-08 16:51:48');
|
||||
INSERT INTO `pms_category_attribute` VALUES (54, 21, '颜色', 1, '2022-03-21 18:10:58', '2022-05-10 10:37:35');
|
||||
INSERT INTO `pms_category_attribute` VALUES (55, 21, '尺寸', 1, '2022-03-21 18:10:58', '2022-05-10 10:37:35');
|
||||
INSERT INTO `pms_category_attribute` VALUES (56, 21, '布料', 2, '2022-03-21 18:11:22', '2022-05-10 10:37:37');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_catetgory_brand
|
||||
@ -127,19 +113,27 @@ CREATE TABLE `pms_sku` (
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_sku_pms_spu`(`spu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 745 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 755 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_sku
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_sku` VALUES (1, 'sn001', 1, '黑 6+128g', '1_3', 399900, 9998, 3, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (1, 'sn001', 1, '黑 6+128g', '1_3', 399900, 999, 5, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (2, 'sn002', 1, '黑 8+256g', '1_4', 499900, 9998, 0, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (3, 'sn003', 1, '蓝 6+128g', '216_3', 399900, 9998, 0, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (4, 'sn004', 1, '蓝 8+256g', '216_4', 499900, 9988, 0, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (5, '10000001', 2, '魔幻青 RTX3060/i7-12700H/165Hz 2.5K屏', '256_258', 1025000, 9823, 14, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_sku` VALUES (6, '10000002', 2, '魔幻青 RTX3050tTi/12代i5/144Hz高色域屏', '256_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (7, '10000003', 2, '日蚀灰 RTX3060/i7-12700H/165Hz 2.5K屏', '257_258', 1025000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (8, '10000004', 2, '日蚀灰 RTX3050tTi/12代i5/144Hz高色域屏', '257_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (5, '10000001', 2, '魔幻青 RTX3060/i7-12700H/165Hz 2.5K屏', '256_258', 1025000, 9816, 26, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (6, '10000002', 2, '魔幻青 RTX3050tTi/12代i5/144Hz高色域屏', '256_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (7, '10000003', 2, '日蚀灰 RTX3060/i7-12700H/165Hz 2.5K屏', '257_258', 1025000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (8, '10000004', 2, '日蚀灰 RTX3050tTi/12代i5/144Hz高色域屏', '257_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (747, '111', 287, '16g 512g 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '841_843_845', 589900, 9991, 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (748, '112', 287, '16g 512g 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '841_843_846', 629900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (749, '113', 287, '16g 1t 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '841_844_845', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (750, '114', 287, '16g 1t 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '841_844_846', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (751, '115', 287, '32g 512g 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '842_843_845', 589900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (752, '116', 287, '32g 512g 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '842_843_846', 629900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (753, '117', 287, '32g 1t 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '842_844_845', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (754, '118', 287, '32g 1t 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '842_844_846', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu
|
||||
@ -164,13 +158,14 @@ CREATE TABLE `pms_spu` (
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_pms_brand`(`brand_id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 285 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 288 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu` VALUES (1, '小米12 PRO', 5, 10, 599900, 599900, 1, 'https://oss.youlai.tech/default/0ccd5bf5cf384185be1f18a01da076b9.png', '[]', '台', '好快,好稳,\n好一次强上加强。\n高通全新一代芯片赋能,速度大幅提升。\n三大专业主摄影像加持,能力全面进化。\n大师级设计理念新诠释,质感简而不凡。\n斩获十五项纪录旗舰屏,感官万般出众。', '<p><img src=\"http://a.youlai.tech:9000/default/1a69357664c24962ac23953905c3c38f.png\" alt=\"\" data-href=\"\" style=\"width: 449.00px;height: 449.00px;\"/></p>', 1, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu` VALUES (2, '华硕天选3', 13, 11, 1145000, 929900, 0, 'https://www.youlai.tech/files/default/d97457b3fd7d4aef8846da96fe032bf8.jpg', '[\"https://www.youlai.tech/files/default/3edd01c723ff456384cea9bd3c9b19e7.jpg\", \"https://www.youlai.tech/files/default/a6681c18fc294ee49efb8e121b8e943f.jpg\", \"https://www.youlai.tech/files/default/97458ae9ea734bc498724660abb1c6cd.jpg\", \"https://www.youlai.tech/files/default/501b0e6dcb3f4d69b7e40e90b3d3ac32.jpg\"]', NULL, '中国台湾华硕电脑股份有限公司 [1] 是当前全球第一大主板生产商、全球第三大显卡生产商,同时也是全球领先的3C解决方案提供商之一,致力于为个人和企业用户提供最具创新价值的产品及应用方案。华硕的产品线完整覆盖至笔记本电脑、主板、显卡、服务器、光存储、有线/无线网络通讯产品、LCD、掌上电脑、智能手机等全线3C产品。其中显卡和主板以及笔记本电脑三大产品已经成为华硕的主要竞争实力。', '<p><img src=\"http://a.youlai.tech:9000/default/5e4fb81b04244a74aacaabb4685101e2.png\" alt=\"\" data-href=\"\" style=\"\"/><img src=\"http://a.youlai.tech:9000/default/0744c5b6d77b47b294eb111ee992c62b.png\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_spu` VALUES (2, '华硕天选3', 101, 11, 1145000, 929900, 0, 'https://www.youlai.tech/files/default/d97457b3fd7d4aef8846da96fe032bf8.jpg', '[\"https://www.youlai.tech/files/default/3edd01c723ff456384cea9bd3c9b19e7.jpg\", \"https://www.youlai.tech/files/default/a6681c18fc294ee49efb8e121b8e943f.jpg\", \"https://www.youlai.tech/files/default/97458ae9ea734bc498724660abb1c6cd.jpg\", \"https://www.youlai.tech/files/default/501b0e6dcb3f4d69b7e40e90b3d3ac32.jpg\"]', NULL, '中国台湾华硕电脑股份有限公司 [1] 是当前全球第一大主板生产商、全球第三大显卡生产商,同时也是全球领先的3C解决方案提供商之一,致力于为个人和企业用户提供最具创新价值的产品及应用方案。华硕的产品线完整覆盖至笔记本电脑、主板、显卡、服务器、光存储、有线/无线网络通讯产品、LCD、掌上电脑、智能手机等全线3C产品。其中显卡和主板以及笔记本电脑三大产品已经成为华硕的主要竞争实力。', '<p><img src=\"http://a.youlai.tech:9000/default/5e4fb81b04244a74aacaabb4685101e2.png\" alt=\"\" data-href=\"\" style=\"\"/><img src=\"http://a.youlai.tech:9000/default/0744c5b6d77b47b294eb111ee992c62b.png\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu` VALUES (287, '惠普战X ', 99, 33, 639900, 629900, 0, 'https://oss.youlai.tech/default/e59859e0effb4b66a0f7380ff5369d66.jpg', '[\"https://oss.youlai.tech/default/de9c5625e35b4c0aa9888c48d4def446.jpg\"]', NULL, '【2022新款】HP/惠普战X 16英寸锐龙新款6000系列R5六核/R7八核高性能学生家用轻薄办公商用笔记本电脑\n六核/八核处理器,高性能集成显卡', '<p><img src=\"https://oss.youlai.tech/default/d645a6f642794e2183cc44d340613b9d.jpg\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu_attribute
|
||||
@ -189,7 +184,7 @@ CREATE TABLE `pms_spu_attribute` (
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_attribute_pms_attr`(`name`) USING BTREE,
|
||||
INDEX `fk_pms_spu_attribute_pms_spu`(`spu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 835 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性/规格表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 847 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性/规格表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu_attribute
|
||||
@ -199,15 +194,24 @@ INSERT INTO `pms_spu_attribute` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, N
|
||||
INSERT INTO `pms_spu_attribute` VALUES (4, 1, 35, '规格', '8+256g', 1, NULL, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (5, 1, 36, '上市时间', '2021-07-17', 2, NULL, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (216, 1, NULL, '颜色', '蓝', 1, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (251, 2, NULL, '上市时间', '2022/3/11', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (252, 2, NULL, '商品名称', '华硕天选3', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (253, 2, NULL, '商品编号', '100032610338', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (254, 2, NULL, '商品毛重', '4.05kg', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (255, 2, NULL, '系统', 'windows11', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (256, 2, NULL, '颜色', '魔幻青', 1, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (257, 2, NULL, '颜色', '日蚀灰', 1, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (258, 2, NULL, '规格', 'RTX3060/i7-12700H/165Hz 2.5K屏', 1, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (259, 2, NULL, '规格', 'RTX3050tTi/12代i5/144Hz高色域屏', 1, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (251, 2, NULL, '上市时间', '2022/3/11', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (252, 2, NULL, '商品名称', '华硕天选3', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (253, 2, NULL, '商品编号', '100032610338', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (254, 2, NULL, '商品毛重', '4.05kg', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (255, 2, NULL, '系统', 'windows11', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (256, 2, NULL, '颜色', '魔幻青', 1, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (257, 2, NULL, '颜色', '日蚀灰', 1, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (258, 2, NULL, '规格', 'RTX3060/i7-12700H/165Hz 2.5K屏', 1, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (259, 2, NULL, '规格', 'RTX3050tTi/12代i5/144Hz高色域屏', 1, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (838, 287, NULL, '内存', '16g 32g', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (839, 287, NULL, '重量', '1.5kg(含)-2kg(不含)', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (840, 287, NULL, '显卡类型', '核芯显卡', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (841, 287, NULL, '内存容量', '16g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (842, 287, NULL, '内存容量', '32g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (843, 287, NULL, '硬盘容量', '512g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (844, 287, NULL, '硬盘容量', '1t', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (845, 287, NULL, '套餐类型', '【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (846, 287, NULL, '套餐类型', '【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for undo_log
|
||||
@ -224,9 +228,5 @@ CREATE TABLE `undo_log` (
|
||||
UNIQUE INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'AT transaction mode undo table' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of undo_log
|
||||
-- ----------------------------
|
||||
INSERT INTO `undo_log` VALUES (27295877623459842, 'c.youlai.tech:8091:27295877623459841', 'serializer=jackson&compressorType=NONE', 0x7B7D, 1, '2022-06-25 00:23:42.978264', '2022-06-25 00:23:42.978264');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
@ -26,13 +26,14 @@ CREATE TABLE `sms_advert` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间(新增有值)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_advert
|
||||
-- ----------------------------
|
||||
INSERT INTO `sms_advert` VALUES (35, '首页banner2', 'https://oss.youlai.tech/default/14d9b8fb471a43429334080124a9c65d.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 2, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (36, 'banner1', 'https://oss.youlai.tech/default/8a0302b55f8a44d0ba92ad1b51bb0c2f.jpg', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 1, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (35, 'banner3', 'https://oss.youlai.tech/default/14d9b8fb471a43429334080124a9c65d.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 3, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (36, 'banner2', 'https://oss.youlai.tech/default/2022/07/17/34f2b48e346a4726bbe5352a18d493fc.jpg', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 2, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (47, 'banner1', 'https://oss.youlai.tech/default/2022/07/17/91765310d3d845999a8a55600ad9ccb3.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 1, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sms_coupon
|
||||
@ -40,34 +41,35 @@ INSERT INTO `sms_advert` VALUES (36, 'banner1', 'https://oss.youlai.tech/default
|
||||
DROP TABLE IF EXISTS `sms_coupon`;
|
||||
CREATE TABLE `sms_coupon` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_0900_ai_ci NOT NULL COMMENT '优惠券名称',
|
||||
`type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型(1:满减券;2:直减券;3:折扣券)',
|
||||
`code` varchar(32) CHARACTER SET utf8 COLLATE utf8_0900_ai_ci NULL DEFAULT '0' COMMENT '优惠券码',
|
||||
`platform` int NULL DEFAULT NULL COMMENT '使用平台(0:全平台;1:APP;2:PC)',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '优惠券名称',
|
||||
`type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型(1-满减券;2-直减券;3-折扣券)',
|
||||
`code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '优惠券码',
|
||||
`platform` int NULL DEFAULT NULL COMMENT '使用平台(0-全平台;1-APP;2-PC)',
|
||||
`face_value_type` tinyint NULL DEFAULT NULL COMMENT '优惠券面值类型',
|
||||
`face_value` bigint NULL DEFAULT NULL COMMENT '优惠券面值(分)',
|
||||
`discount` decimal(10, 2) NULL DEFAULT NULL COMMENT '折扣',
|
||||
`min_point` bigint NULL DEFAULT NULL COMMENT '使用门槛(0:无门槛)',
|
||||
`per_limit` int NULL DEFAULT 1 COMMENT '每人限领张数(-1:无限制)',
|
||||
`per_limit` int NULL DEFAULT 1 COMMENT '每人限领张数(-1-无限制)',
|
||||
`validity_period_type` tinyint NULL DEFAULT NULL COMMENT '有效期类型(1:自领取时起有效天数;2:有效起止时间)',
|
||||
`validity_days` int NULL DEFAULT 1 COMMENT '有效期天数',
|
||||
`validity_begin_time` datetime NULL DEFAULT NULL COMMENT '有效期起始时间',
|
||||
`validity_end_time` datetime NULL DEFAULT NULL COMMENT '有效期截止时间',
|
||||
`use_type` tinyint NULL DEFAULT NULL COMMENT '使用类型(0:全场通用;1:指定商品分类;2:指定商品)',
|
||||
`issue_count` int NULL DEFAULT 1 COMMENT '优惠券发放数量(-1-无限制)',
|
||||
`application_scope` tinyint NULL DEFAULT NULL COMMENT '应用范围(0-全场通用;1-指定商品分类;2-指定商品)',
|
||||
`circulation` int NULL DEFAULT 1 COMMENT '发行量(-1-无限制)',
|
||||
`received_count` int NULL DEFAULT 0 COMMENT '已领取的优惠券数量(统计)',
|
||||
`used_count` int NULL DEFAULT 0 COMMENT '已使用的优惠券数量(统计)',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`deleted` tinyint NULL DEFAULT 1 COMMENT '逻辑删除标识(0:正常;1:删除)',
|
||||
`deleted` tinyint NULL DEFAULT 1 COMMENT '逻辑删除标识(0-正常;1-删除)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_0900_ai_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon
|
||||
-- ----------------------------
|
||||
INSERT INTO `sms_coupon` VALUES (1, '新人无门槛优惠券,立减20元', 3, '123456', 1, 1, NULL, 10000000, 1, 1, 7, '2021-03-17 21:10:35', '2025-03-17 21:10:38', NULL, 1000, 0, 0, NULL, '2021-03-17 21:10:54', '2021-03-17 21:10:56', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (2, '满减优惠券', 1, '50', 2, 12, NULL, 10000000, 1, 2, 7, '2021-03-17 21:19:22', '2022-03-17 21:19:24', NULL, 100, 0, 0, NULL, '2021-03-17 21:19:44', '2021-03-17 21:19:46', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (1, '新人无门槛优惠券,立减20元', 1, '123456', 1, 2, 1000000, 0.80, 100000, 1, 1, 7, '2021-03-17 21:10:35', '2025-03-17 21:10:38', 2, 1, 0, 0, NULL, '2022-07-16 11:33:42', '2021-03-17 21:10:56', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (2, '满减优惠券', 1, '50', 2, NULL, 12, 0.00, 10000000, 1, 2, 7, NULL, NULL, 2, 100, 0, 0, NULL, '2022-07-16 01:28:42', '2021-03-17 21:19:46', 0);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sms_coupon_history
|
||||
@ -98,12 +100,11 @@ CREATE TABLE `sms_coupon_history` (
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sms_coupon_spu`;
|
||||
CREATE TABLE `sms_coupon_spu` (
|
||||
`id` bigint NOT NULL,
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`coupon_id` bigint NOT NULL COMMENT '优惠券ID',
|
||||
`spu_id` bigint NOT NULL COMMENT '商品ID',
|
||||
`spu_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品名称',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1548148841429663747 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon_spu
|
||||
@ -114,12 +115,11 @@ CREATE TABLE `sms_coupon_spu` (
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sms_coupon_spu_category`;
|
||||
CREATE TABLE `sms_coupon_spu_category` (
|
||||
`id` bigint NOT NULL,
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`coupon_id` bigint NOT NULL COMMENT '优惠券ID',
|
||||
`category_id` bigint NOT NULL COMMENT '商品分类ID',
|
||||
`category_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品分类名称',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon_spu_category
|
||||
@ -144,4 +144,4 @@ CREATE TABLE `undo_log` (
|
||||
-- Records of undo_log
|
||||
-- ----------------------------
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
@ -11,7 +11,7 @@
|
||||
Target Server Version : 80029
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 03/07/2022 14:25:36
|
||||
Date: 17/07/2022 18:26:29
|
||||
*/
|
||||
use mall_pms;
|
||||
|
||||
@ -30,7 +30,7 @@ CREATE TABLE `pms_brand` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_brand
|
||||
@ -38,7 +38,8 @@ CREATE TABLE `pms_brand` (
|
||||
INSERT INTO `pms_brand` VALUES (1, '有来', 'http://a.youlai.tech:9000/default/5409e3deb5a14b8fa8cb4275dee0e25d.png', 1, '2021-07-11 19:56:58', '2021-07-11 20:02:54');
|
||||
INSERT INTO `pms_brand` VALUES (10, '小米', 'http://a.youlai.tech:9000/default/6a5a606fc60742919149a7861bf26cd5.jpg', 2, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
INSERT INTO `pms_brand` VALUES (11, '华硕', 'http://a.youlai.tech:9000/default/f18083f95e104a0bae3c587dee3bb2ed.png', 3, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
INSERT INTO `pms_brand` VALUES (20, '华为', NULL, 1, '2022-05-06 23:08:33', '2022-05-06 23:08:33');
|
||||
INSERT INTO `pms_brand` VALUES (20, '华为', 'https://oss.youlai.tech/default/ff61bd639b23491d8f2aa85d09fcf788.jpg', 1, '2022-05-06 23:08:33', '2022-05-06 23:08:33');
|
||||
INSERT INTO `pms_brand` VALUES (33, '惠普', 'https://oss.youlai.tech/default/4cf579add9544c6eaafb41ce1131559e.gif', 1, '2022-07-07 00:12:16', '2022-07-07 00:12:16');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category
|
||||
@ -55,29 +56,19 @@ CREATE TABLE `pms_category` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 96 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_category
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_category` VALUES (3, '手机配件', 0, 1, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (3, '手机配件', 0, 1, NULL, 2, 1, NULL, '2022-07-07 22:56:53');
|
||||
INSERT INTO `pms_category` VALUES (4, '智能手机', 3, 2, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'https://www.youlai.tech/files/default/f4a27e240c184758942670aad9ce5639.jpg', 1, 1, NULL, '2022-03-05 16:16:16');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑', 0, 1, 'https://www.youlai.tech/files/default/776c21c1a71848069093033f461c5f4a.jpg', 1, 1, '2022-02-25 11:22:44', '2022-02-25 11:22:44');
|
||||
INSERT INTO `pms_category` VALUES (7, '游戏本', 6, 2, 'https://www.youlai.tech/files/default/f41d764d7ce64054b75fe9be5fb3f700.jpg', 1, 1, '2022-02-25 11:23:06', '2022-02-25 11:23:06');
|
||||
INSERT INTO `pms_category` VALUES (8, '轻薄本', 6, 2, 'https://www.youlai.tech/files/default/840ddc78c93d422b9929821c97f3dfbe.jpg', 2, 1, '2022-02-25 11:23:24', '2022-02-25 11:23:24');
|
||||
INSERT INTO `pms_category` VALUES (11, '联想拯救者', 7, 3, NULL, 100, 1, '2022-03-11 14:21:11', '2022-03-11 14:21:11');
|
||||
INSERT INTO `pms_category` VALUES (13, '华硕', 7, 3, NULL, 100, 1, '2022-03-11 14:23:50', '2022-03-11 14:23:50');
|
||||
INSERT INTO `pms_category` VALUES (14, '手机壳', 3, 2, NULL, 1, 1, '2022-03-15 10:16:40', '2022-03-15 10:16:40');
|
||||
INSERT INTO `pms_category` VALUES (15, '服饰', 0, 1, NULL, 1, 1, '2022-03-15 10:16:55', '2022-03-15 10:16:55');
|
||||
INSERT INTO `pms_category` VALUES (16, '男装', 15, 2, NULL, 1, 1, '2022-03-15 10:17:06', '2022-03-15 10:17:06');
|
||||
INSERT INTO `pms_category` VALUES (17, '女装', 15, 2, NULL, 1, 1, '2022-03-15 10:17:12', '2022-07-03 14:16:36');
|
||||
INSERT INTO `pms_category` VALUES (18, '水果', 0, 1, NULL, 1, 1, '2022-03-15 10:17:28', '2022-03-15 10:17:28');
|
||||
INSERT INTO `pms_category` VALUES (19, '国产水果', 18, 2, NULL, 1, 1, '2022-03-15 10:17:42', '2022-03-15 10:17:42');
|
||||
INSERT INTO `pms_category` VALUES (20, '热带水果', 18, 2, NULL, 1, 1, '2022-03-15 10:17:50', '2022-03-15 10:17:50');
|
||||
INSERT INTO `pms_category` VALUES (21, '衬衫', 16, 3, NULL, 1, 1, '2022-03-15 10:18:05', '2022-03-15 10:18:05');
|
||||
INSERT INTO `pms_category` VALUES (22, '裙子', 17, 3, NULL, 1, 1, '2022-03-15 10:18:18', '2022-03-15 10:18:18');
|
||||
INSERT INTO `pms_category` VALUES (23, '水果', 19, 3, 'https://www.youlai.tech/files/default/9204260996c9430284428d2e13b45d71.jpg', 100, 1, '2022-03-16 16:37:10', '2022-03-16 16:37:10');
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'https://oss.youlai.tech/default/6ffb37110ac2434a9882b9e8968b2887.jpg', 1, 1, NULL, '2022-07-08 00:28:38');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑办公', 0, 1, 'https://www.youlai.tech/files/default/776c21c1a71848069093033f461c5f4a.jpg', 1, 1, '2022-02-25 11:22:44', '2022-07-07 22:56:38');
|
||||
INSERT INTO `pms_category` VALUES (97, '笔记本电脑', 6, 2, NULL, 100, 1, '2022-07-08 00:10:27', '2022-07-08 00:10:27');
|
||||
INSERT INTO `pms_category` VALUES (99, '轻薄本', 97, 3, 'https://oss.youlai.tech/default/2f849b96ebb54ab3a94b1b90137f1b4d.png', 100, 1, '2022-07-08 00:14:03', '2022-07-08 00:26:52');
|
||||
INSERT INTO `pms_category` VALUES (100, '全能本', 97, 3, 'https://oss.youlai.tech/default/37cc080ec61b4ce7b0583b002568ebaa.png', 100, 1, '2022-07-08 00:14:10', '2022-07-08 00:27:01');
|
||||
INSERT INTO `pms_category` VALUES (101, '游戏本', 97, 3, 'https://oss.youlai.tech/default/5c1a2d5427534b48bc382caa55197f11.png', 100, 1, '2022-07-08 00:14:18', '2022-07-08 00:27:11');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category_attribute
|
||||
@ -92,7 +83,7 @@ CREATE TABLE `pms_category_attribute` (
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_attr_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 172 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 183 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_category_attribute
|
||||
@ -100,11 +91,6 @@ CREATE TABLE `pms_category_attribute` (
|
||||
INSERT INTO `pms_category_attribute` VALUES (34, 5, '颜色', 1, '2021-07-11 17:57:06', '2022-07-01 00:08:19');
|
||||
INSERT INTO `pms_category_attribute` VALUES (35, 5, '规格', 1, '2021-07-11 18:00:06', '2022-07-01 00:08:19');
|
||||
INSERT INTO `pms_category_attribute` VALUES (36, 5, '上市时间', 2, '2021-07-11 18:00:08', '2022-06-01 17:41:05');
|
||||
INSERT INTO `pms_category_attribute` VALUES (47, 8, '阿斯顿', 1, '2022-03-04 13:00:43', '2022-03-18 15:57:49');
|
||||
INSERT INTO `pms_category_attribute` VALUES (48, 8, '内存', 2, '2022-03-08 16:51:48', '2022-03-08 16:51:48');
|
||||
INSERT INTO `pms_category_attribute` VALUES (54, 21, '颜色', 1, '2022-03-21 18:10:58', '2022-05-10 10:37:35');
|
||||
INSERT INTO `pms_category_attribute` VALUES (55, 21, '尺寸', 1, '2022-03-21 18:10:58', '2022-05-10 10:37:35');
|
||||
INSERT INTO `pms_category_attribute` VALUES (56, 21, '布料', 2, '2022-03-21 18:11:22', '2022-05-10 10:37:37');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_catetgory_brand
|
||||
@ -138,19 +124,27 @@ CREATE TABLE `pms_sku` (
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_sku_pms_spu`(`spu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 745 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 755 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_sku
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_sku` VALUES (1, 'sn001', 1, '黑 6+128g', '1_3', 399900, 9998, 3, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (1, 'sn001', 1, '黑 6+128g', '1_3', 399900, 999, 5, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (2, 'sn002', 1, '黑 8+256g', '1_4', 499900, 9998, 0, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', '2021-08-08 00:43:26', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (3, 'sn003', 1, '蓝 6+128g', '216_3', 399900, 9998, 0, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (4, 'sn004', 1, '蓝 8+256g', '216_4', 499900, 9988, 0, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_sku` VALUES (5, '10000001', 2, '魔幻青 RTX3060/i7-12700H/165Hz 2.5K屏', '256_258', 1025000, 9823, 14, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_sku` VALUES (6, '10000002', 2, '魔幻青 RTX3050tTi/12代i5/144Hz高色域屏', '256_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (7, '10000003', 2, '日蚀灰 RTX3060/i7-12700H/165Hz 2.5K屏', '257_258', 1025000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (8, '10000004', 2, '日蚀灰 RTX3050tTi/12代i5/144Hz高色域屏', '257_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_sku` VALUES (5, '10000001', 2, '魔幻青 RTX3060/i7-12700H/165Hz 2.5K屏', '256_258', 1025000, 9816, 26, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (6, '10000002', 2, '魔幻青 RTX3050tTi/12代i5/144Hz高色域屏', '256_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (7, '10000003', 2, '日蚀灰 RTX3060/i7-12700H/165Hz 2.5K屏', '257_258', 1025000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (8, '10000004', 2, '日蚀灰 RTX3050tTi/12代i5/144Hz高色域屏', '257_259', 925000, 10000, 0, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_sku` VALUES (747, '111', 287, '16g 512g 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '841_843_845', 589900, 9991, 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (748, '112', 287, '16g 512g 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '841_843_846', 629900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (749, '113', 287, '16g 1t 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '841_844_845', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (750, '114', 287, '16g 1t 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '841_844_846', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (751, '115', 287, '32g 512g 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '842_843_845', 589900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (752, '116', 287, '32g 512g 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '842_843_846', 629900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (753, '117', 287, '32g 1t 【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', '842_844_845', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_sku` VALUES (754, '118', 287, '32g 1t 【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', '842_844_846', 639900, 9999, 0, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu
|
||||
@ -175,13 +169,14 @@ CREATE TABLE `pms_spu` (
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_pms_brand`(`brand_id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 285 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 288 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu` VALUES (1, '小米12 PRO', 5, 10, 599900, 599900, 1, 'https://oss.youlai.tech/default/0ccd5bf5cf384185be1f18a01da076b9.png', '[]', '台', '好快,好稳,\n好一次强上加强。\n高通全新一代芯片赋能,速度大幅提升。\n三大专业主摄影像加持,能力全面进化。\n大师级设计理念新诠释,质感简而不凡。\n斩获十五项纪录旗舰屏,感官万般出众。', '<p><img src=\"http://a.youlai.tech:9000/default/1a69357664c24962ac23953905c3c38f.png\" alt=\"\" data-href=\"\" style=\"width: 449.00px;height: 449.00px;\"/></p>', 1, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu` VALUES (2, '华硕天选3', 13, 11, 1145000, 929900, 0, 'https://www.youlai.tech/files/default/d97457b3fd7d4aef8846da96fe032bf8.jpg', '[\"https://www.youlai.tech/files/default/3edd01c723ff456384cea9bd3c9b19e7.jpg\", \"https://www.youlai.tech/files/default/a6681c18fc294ee49efb8e121b8e943f.jpg\", \"https://www.youlai.tech/files/default/97458ae9ea734bc498724660abb1c6cd.jpg\", \"https://www.youlai.tech/files/default/501b0e6dcb3f4d69b7e40e90b3d3ac32.jpg\"]', NULL, '中国台湾华硕电脑股份有限公司 [1] 是当前全球第一大主板生产商、全球第三大显卡生产商,同时也是全球领先的3C解决方案提供商之一,致力于为个人和企业用户提供最具创新价值的产品及应用方案。华硕的产品线完整覆盖至笔记本电脑、主板、显卡、服务器、光存储、有线/无线网络通讯产品、LCD、掌上电脑、智能手机等全线3C产品。其中显卡和主板以及笔记本电脑三大产品已经成为华硕的主要竞争实力。', '<p><img src=\"http://a.youlai.tech:9000/default/5e4fb81b04244a74aacaabb4685101e2.png\" alt=\"\" data-href=\"\" style=\"\"/><img src=\"http://a.youlai.tech:9000/default/0744c5b6d77b47b294eb111ee992c62b.png\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-03-11 14:39:21', '2022-04-15 23:47:46');
|
||||
INSERT INTO `pms_spu` VALUES (2, '华硕天选3', 101, 11, 1145000, 929900, 0, 'https://www.youlai.tech/files/default/d97457b3fd7d4aef8846da96fe032bf8.jpg', '[\"https://www.youlai.tech/files/default/3edd01c723ff456384cea9bd3c9b19e7.jpg\", \"https://www.youlai.tech/files/default/a6681c18fc294ee49efb8e121b8e943f.jpg\", \"https://www.youlai.tech/files/default/97458ae9ea734bc498724660abb1c6cd.jpg\", \"https://www.youlai.tech/files/default/501b0e6dcb3f4d69b7e40e90b3d3ac32.jpg\"]', NULL, '中国台湾华硕电脑股份有限公司 [1] 是当前全球第一大主板生产商、全球第三大显卡生产商,同时也是全球领先的3C解决方案提供商之一,致力于为个人和企业用户提供最具创新价值的产品及应用方案。华硕的产品线完整覆盖至笔记本电脑、主板、显卡、服务器、光存储、有线/无线网络通讯产品、LCD、掌上电脑、智能手机等全线3C产品。其中显卡和主板以及笔记本电脑三大产品已经成为华硕的主要竞争实力。', '<p><img src=\"http://a.youlai.tech:9000/default/5e4fb81b04244a74aacaabb4685101e2.png\" alt=\"\" data-href=\"\" style=\"\"/><img src=\"http://a.youlai.tech:9000/default/0744c5b6d77b47b294eb111ee992c62b.png\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu` VALUES (287, '惠普战X ', 99, 33, 639900, 629900, 0, 'https://oss.youlai.tech/default/e59859e0effb4b66a0f7380ff5369d66.jpg', '[\"https://oss.youlai.tech/default/de9c5625e35b4c0aa9888c48d4def446.jpg\"]', NULL, '【2022新款】HP/惠普战X 16英寸锐龙新款6000系列R5六核/R7八核高性能学生家用轻薄办公商用笔记本电脑\n六核/八核处理器,高性能集成显卡', '<p><img src=\"https://oss.youlai.tech/default/d645a6f642794e2183cc44d340613b9d.jpg\" alt=\"\" data-href=\"\" style=\"\"/></p>', 1, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu_attribute
|
||||
@ -200,7 +195,7 @@ CREATE TABLE `pms_spu_attribute` (
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_spu_attribute_pms_attr`(`name`) USING BTREE,
|
||||
INDEX `fk_pms_spu_attribute_pms_spu`(`spu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 835 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性/规格表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 847 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性/规格表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu_attribute
|
||||
@ -210,15 +205,24 @@ INSERT INTO `pms_spu_attribute` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, N
|
||||
INSERT INTO `pms_spu_attribute` VALUES (4, 1, 35, '规格', '8+256g', 1, NULL, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (5, 1, 36, '上市时间', '2021-07-17', 2, NULL, NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (216, 1, NULL, '颜色', '蓝', 1, 'https://www.youlai.tech/files/default/835d73a337964b9b97e5c7c90acc8cb2.png', '2022-03-05 09:25:53', '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (251, 2, NULL, '上市时间', '2022/3/11', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (252, 2, NULL, '商品名称', '华硕天选3', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (253, 2, NULL, '商品编号', '100032610338', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (254, 2, NULL, '商品毛重', '4.05kg', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (255, 2, NULL, '系统', 'windows11', 2, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (256, 2, NULL, '颜色', '魔幻青', 1, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (257, 2, NULL, '颜色', '日蚀灰', 1, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (258, 2, NULL, '规格', 'RTX3060/i7-12700H/165Hz 2.5K屏', 1, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (259, 2, NULL, '规格', 'RTX3050tTi/12代i5/144Hz高色域屏', 1, NULL, '2022-03-11 14:39:21', '2022-04-15 23:47:45');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (251, 2, NULL, '上市时间', '2022/3/11', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (252, 2, NULL, '商品名称', '华硕天选3', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (253, 2, NULL, '商品编号', '100032610338', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (254, 2, NULL, '商品毛重', '4.05kg', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (255, 2, NULL, '系统', 'windows11', 2, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (256, 2, NULL, '颜色', '魔幻青', 1, 'http://a.youlai.tech:9000/default/8815c9a46fcc4b1ea952623406750da5.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (257, 2, NULL, '颜色', '日蚀灰', 1, 'http://a.youlai.tech:9000/default/3210cd1ffb6c4346b743a10855d3cb37.jpg', '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (258, 2, NULL, '规格', 'RTX3060/i7-12700H/165Hz 2.5K屏', 1, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (259, 2, NULL, '规格', 'RTX3050tTi/12代i5/144Hz高色域屏', 1, NULL, '2022-03-11 14:39:21', '2022-07-08 00:29:56');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (838, 287, NULL, '内存', '16g 32g', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (839, 287, NULL, '重量', '1.5kg(含)-2kg(不含)', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (840, 287, NULL, '显卡类型', '核芯显卡', 2, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (841, 287, NULL, '内存容量', '16g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (842, 287, NULL, '内存容量', '32g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (843, 287, NULL, '硬盘容量', '512g', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (844, 287, NULL, '硬盘容量', '1t', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (845, 287, NULL, '套餐类型', '【2022款】锐龙六核R5-6600U/核芯显卡/100%sRGB高色域', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (846, 287, NULL, '套餐类型', '【2022款】锐龙八核R7-6800U/核芯显卡/100%sRGB高色域', 1, NULL, '2022-07-07 00:22:13', '2022-07-08 00:29:41');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for undo_log
|
||||
@ -235,9 +239,4 @@ CREATE TABLE `undo_log` (
|
||||
UNIQUE INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'AT transaction mode undo table' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of undo_log
|
||||
-- ----------------------------
|
||||
INSERT INTO `undo_log` VALUES (27295877623459842, 'c.youlai.tech:8091:27295877623459841', 'serializer=jackson&compressorType=NONE', 0x7B7D, 1, '2022-06-25 00:23:42.978264', '2022-06-25 00:23:42.978264');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
@ -11,7 +11,7 @@
|
||||
Target Server Version : 80029
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 04/07/2022 00:10:56
|
||||
Date: 17/07/2022 21:17:16
|
||||
*/
|
||||
use mall_sms;
|
||||
|
||||
@ -35,13 +35,14 @@ CREATE TABLE `sms_advert` (
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间(新增有值)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_advert
|
||||
-- ----------------------------
|
||||
INSERT INTO `sms_advert` VALUES (35, '首页banner2', 'https://oss.youlai.tech/default/14d9b8fb471a43429334080124a9c65d.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 2, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (36, 'banner1', 'https://oss.youlai.tech/default/8a0302b55f8a44d0ba92ad1b51bb0c2f.jpg', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 1, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (35, 'banner3', 'https://oss.youlai.tech/default/14d9b8fb471a43429334080124a9c65d.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 3, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (36, 'banner2', 'https://oss.youlai.tech/default/2022/07/17/34f2b48e346a4726bbe5352a18d493fc.jpg', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 2, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
INSERT INTO `sms_advert` VALUES (47, 'banner1', 'https://oss.youlai.tech/default/2022/07/17/91765310d3d845999a8a55600ad9ccb3.png', '2022-07-04 00:00:00', '2022-10-07 00:00:00', 1, 1, NULL, NULL, '2022-07-04 00:08:10', '2022-07-04 00:08:10');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sms_coupon
|
||||
@ -50,33 +51,34 @@ DROP TABLE IF EXISTS `sms_coupon`;
|
||||
CREATE TABLE `sms_coupon` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '优惠券名称',
|
||||
`type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型(1:满减券;2:直减券;3:折扣券)',
|
||||
`type` tinyint NOT NULL DEFAULT 1 COMMENT '优惠券类型(1-满减券;2-直减券;3-折扣券)',
|
||||
`code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '优惠券码',
|
||||
`platform` int NULL DEFAULT NULL COMMENT '使用平台(0:全平台;1:APP;2:PC)',
|
||||
`platform` int NULL DEFAULT NULL COMMENT '使用平台(0-全平台;1-APP;2-PC)',
|
||||
`face_value_type` tinyint NULL DEFAULT NULL COMMENT '优惠券面值类型',
|
||||
`face_value` bigint NULL DEFAULT NULL COMMENT '优惠券面值(分)',
|
||||
`discount` decimal(10, 2) NULL DEFAULT NULL COMMENT '折扣',
|
||||
`min_point` bigint NULL DEFAULT NULL COMMENT '使用门槛(0:无门槛)',
|
||||
`per_limit` int NULL DEFAULT 1 COMMENT '每人限领张数(-1:无限制)',
|
||||
`per_limit` int NULL DEFAULT 1 COMMENT '每人限领张数(-1-无限制)',
|
||||
`validity_period_type` tinyint NULL DEFAULT NULL COMMENT '有效期类型(1:自领取时起有效天数;2:有效起止时间)',
|
||||
`validity_days` int NULL DEFAULT 1 COMMENT '有效期天数',
|
||||
`validity_begin_time` datetime NULL DEFAULT NULL COMMENT '有效期起始时间',
|
||||
`validity_end_time` datetime NULL DEFAULT NULL COMMENT '有效期截止时间',
|
||||
`use_type` tinyint NULL DEFAULT NULL COMMENT '使用类型(0:全场通用;1:指定商品分类;2:指定商品)',
|
||||
`issue_count` int NULL DEFAULT 1 COMMENT '优惠券发放数量(-1-无限制)',
|
||||
`application_scope` tinyint NULL DEFAULT NULL COMMENT '应用范围(0-全场通用;1-指定商品分类;2-指定商品)',
|
||||
`circulation` int NULL DEFAULT 1 COMMENT '发行量(-1-无限制)',
|
||||
`received_count` int NULL DEFAULT 0 COMMENT '已领取的优惠券数量(统计)',
|
||||
`used_count` int NULL DEFAULT 0 COMMENT '已使用的优惠券数量(统计)',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`deleted` tinyint NULL DEFAULT 1 COMMENT '逻辑删除标识(0:正常;1:删除)',
|
||||
`deleted` tinyint NULL DEFAULT 1 COMMENT '逻辑删除标识(0-正常;1-删除)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon
|
||||
-- ----------------------------
|
||||
INSERT INTO `sms_coupon` VALUES (1, '新人无门槛优惠券,立减20元', 3, '123456', 1, 1, NULL, 10000000, 1, 1, 7, '2021-03-17 21:10:35', '2025-03-17 21:10:38', NULL, 1000, 0, 0, NULL, '2021-03-17 21:10:54', '2021-03-17 21:10:56', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (2, '满减优惠券', 1, '50', 2, 12, NULL, 10000000, 1, 2, 7, '2021-03-17 21:19:22', '2022-03-17 21:19:24', NULL, 100, 0, 0, NULL, '2021-03-17 21:19:44', '2021-03-17 21:19:46', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (1, '新人无门槛优惠券,立减20元', 1, '123456', 1, 2, 1000000, 0.80, 100000, 1, 1, 7, '2021-03-17 21:10:35', '2025-03-17 21:10:38', 2, 1, 0, 0, NULL, '2022-07-16 11:33:42', '2021-03-17 21:10:56', 0);
|
||||
INSERT INTO `sms_coupon` VALUES (2, '满减优惠券', 1, '50', 2, NULL, 12, 0.00, 10000000, 1, 2, 7, NULL, NULL, 2, 100, 0, 0, NULL, '2022-07-16 01:28:42', '2021-03-17 21:19:46', 0);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for sms_coupon_history
|
||||
@ -107,12 +109,11 @@ CREATE TABLE `sms_coupon_history` (
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sms_coupon_spu`;
|
||||
CREATE TABLE `sms_coupon_spu` (
|
||||
`id` bigint NOT NULL,
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`coupon_id` bigint NOT NULL COMMENT '优惠券ID',
|
||||
`spu_id` bigint NOT NULL COMMENT '商品ID',
|
||||
`spu_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品名称',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1548148841429663747 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon_spu
|
||||
@ -123,12 +124,11 @@ CREATE TABLE `sms_coupon_spu` (
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `sms_coupon_spu_category`;
|
||||
CREATE TABLE `sms_coupon_spu_category` (
|
||||
`id` bigint NOT NULL,
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`coupon_id` bigint NOT NULL COMMENT '优惠券ID',
|
||||
`category_id` bigint NOT NULL COMMENT '商品分类ID',
|
||||
`category_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品分类名称',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of sms_coupon_spu_category
|
||||
|
Loading…
Reference in New Issue
Block a user