mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
docs: 时间字段名修改和商品表接口变更
This commit is contained in:
parent
d8ad7f0561
commit
1a0bd90191
@ -34,8 +34,8 @@ CREATE TABLE `oms_order` (
|
||||
`receive_time` datetime NULL DEFAULT NULL COMMENT '确认收货时间',
|
||||
`comment_time` datetime NULL DEFAULT NULL COMMENT '评价时间',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除【0->正常;1->已删除】',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `index_order_sn`(`order_sn`) USING BTREE COMMENT '订单号唯一索引',
|
||||
UNIQUE INDEX `index_otn`(`out_trade_no`) USING BTREE COMMENT '商户订单号唯一索引',
|
||||
@ -109,8 +109,8 @@ CREATE TABLE `oms_order_item` (
|
||||
`count` int NOT NULL DEFAULT 0 COMMENT '商品数量',
|
||||
`total_amount` bigint NOT NULL DEFAULT 0 COMMENT '商品总价(单位:分)',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除标识(1:已删除;0:正常)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `index_order_id`(`order_id`) USING BTREE COMMENT '订单id索引'
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 210 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '订单商品信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
@ -3,33 +3,10 @@
|
||||
* MySQL5.x版本
|
||||
*/
|
||||
use mall_pms;
|
||||
|
||||
|
||||
SET NAMES utf8;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_attribute`;
|
||||
CREATE TABLE `pms_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`category_id` bigint NOT NULL COMMENT '分类ID',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名称',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_attr_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_attribute
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_attribute` VALUES (34, 5, '颜色', 1, '2021-07-11 17:57:06', '2022-03-05 13:16:30');
|
||||
INSERT INTO `pms_attribute` VALUES (35, 5, '规格', 1, '2021-07-11 18:00:06', '2022-03-05 13:16:30');
|
||||
INSERT INTO `pms_attribute` VALUES (36, 5, '上市时间', 2, '2021-07-11 18:00:08', '2022-03-05 13:16:31');
|
||||
INSERT INTO `pms_attribute` VALUES (47, 8, '阿斯顿', 1, '2022-03-04 13:00:43', '2022-03-04 13:00:43');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_brand
|
||||
-- ----------------------------
|
||||
@ -39,16 +16,18 @@ CREATE TABLE `pms_brand` (
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '品牌名称',
|
||||
`logo_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'LOGO图片',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of 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/6c5433c84cc54120996a151c8e6d4cf3.jpg', 1, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category
|
||||
@ -62,20 +41,59 @@ CREATE TABLE `pms_category` (
|
||||
`icon_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标地址',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`visible` tinyint(1) NULL DEFAULT 1 COMMENT '显示状态:( 0:隐藏 1:显示)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 96 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 (4, '智能手机', 3, 2, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'http://a.youlai.tech:9000/default/f4a27e240c184758942670aad9ce5639.jpg', 1, 1, NULL, '2022-03-05 16:16:16');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑', 0, 1, 'http://a.youlai.tech:9000/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, 'http://a.youlai.tech:9000/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, 'http://a.youlai.tech:9000/default/840ddc78c93d422b9929821c97f3dfbe.jpg', 2, 1, '2022-02-25 11:23:24', '2022-02-25 11:23:24');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_category_attribute`;
|
||||
CREATE TABLE `pms_category_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`category_id` bigint NOT NULL COMMENT '分类ID',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名称',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of 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
|
||||
@ -105,19 +123,23 @@ CREATE TABLE `pms_sku` (
|
||||
`stock_num` int NULL DEFAULT 0 COMMENT '库存数量',
|
||||
`locked_stock_num` int NULL DEFAULT 0 COMMENT '锁定库存数量',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品图片地址',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`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 = 353 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 745 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_sku
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_sku` VALUES (291, 'sn001', 1, '黑 6+128g', '1_3', 399900, 999, 0, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', '2021-08-08 00:43:26', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (292, 'sn002', 1, '黑 8+256g', '1_4', 499900, 999, 0, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', '2021-08-08 00:43:26', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (353, 'sn003', 1, '蓝 6+128g', '216_3', 399900, 999, 0, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (354, 'sn004', 1, '蓝 8+256g', '216_4', 499900, 998, 0, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
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 (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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu
|
||||
@ -136,54 +158,56 @@ CREATE TABLE `pms_spu` (
|
||||
`unit` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
|
||||
`description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品简介',
|
||||
`detail` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '商品详情',
|
||||
`status` tinyint NULL DEFAULT NULL COMMENT '商品状态:0-下架 1-上架',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`status` tinyint NULL DEFAULT 1 COMMENT '商品状态(0:下架 1:上架)',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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 = 97 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 285 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu` VALUES (1, '小米12 PRO', 5, 1, 599900, 599900, 1, 'http://a.youlai.tech:9000/default/1fb5d61cae2c4831a6122ca9ec747624.png', '[\"https://gitee.com/haoxr/image/raw/master/default/image-20210702002909113.png\", \"https://gitee.com/haoxr/image/raw/master/default/image-20210702002909113.png\"]', '台', '好快,好稳,\n好一次强上加强。\n高通全新一代芯片赋能,速度大幅提升。\n三大专业主摄影像加持,能力全面进化。\n大师级设计理念新诠释,质感简而不凡。\n斩获十五项纪录旗舰屏,感官万般出众。', '<p>123123<img src=\"http://a.youlai.tech:9000/default/1a69357664c24962ac23953905c3c38f.png\" alt=\"\" data-href=\"\" style=\"width: 449.00px;height: 449.00px;\"/></p>', 1, NULL, '2022-03-05 15:01:53');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu_attribute_value
|
||||
-- Table structure for pms_spu_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_spu_attribute_value`;
|
||||
CREATE TABLE `pms_spu_attribute_value` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`spu_id` bigint NOT NULL COMMENT '产品ID',
|
||||
`attribute_id` bigint NULL DEFAULT NULL COMMENT '属性ID',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名称',
|
||||
`value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性值',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格图片',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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 = 216 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性项表' ROW_FORMAT = DYNAMIC;
|
||||
DROP TABLE IF EXISTS `pms_spu_attribute`;
|
||||
CREATE TABLE `pms_spu_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`spu_id` bigint NOT NULL COMMENT '产品ID',
|
||||
`attribute_id` bigint NULL DEFAULT NULL COMMENT '属性ID',
|
||||
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名称',
|
||||
`value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性值',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格图片',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu_attribute_value
|
||||
-- Records of pms_spu_attribute
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (1, 1, 34, '颜色', '黑', 1, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (4, 1, 35, '规格', '8+256g', 1, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (5, 1, 36, '上市时间', '2021-07-17', 2, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (97, 68, NULL, '颜色', '4123', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (98, 68, NULL, '规格', '456', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (99, 68, NULL, '规格', '123', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (100, 69, NULL, '上市时间', '123', 2, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (101, 69, NULL, '颜色', '123', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (102, 69, NULL, '颜色', '4123', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (103, 69, NULL, '规格', '456', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (104, 69, NULL, '规格', '123', 1, NULL, '2021-08-07 23:41:45', '2021-08-07 23:41:45');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (216, 1, NULL, '颜色', '蓝', 1, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (1, 1, 34, '颜色', '黑', 1, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, NULL, '2022-07-03 14:16:16');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for undo_log
|
||||
@ -200,4 +224,9 @@ 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;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
-- ----------------------------
|
||||
-- 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;
|
||||
|
@ -22,8 +22,8 @@ CREATE TABLE `sms_advert` (
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '链接地址',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -57,8 +57,8 @@ CREATE TABLE `sms_coupon` (
|
||||
`end_time` datetime NOT NULL COMMENT '发放结束时间',
|
||||
`valid_days` int NOT NULL DEFAULT 1 COMMENT '自领取之日起有效天数',
|
||||
`status` int NOT NULL DEFAULT 1 COMMENT '逻辑删除使用',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -86,8 +86,8 @@ CREATE TABLE `sms_coupon_record` (
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
|
||||
`order_id` bigint NULL DEFAULT NULL COMMENT '订单id',
|
||||
`status` int NOT NULL DEFAULT 1 COMMENT '逻辑删除使用',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券领劵使用记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -116,10 +116,10 @@ CREATE TABLE `sms_coupon_template` (
|
||||
`total` int NOT NULL DEFAULT 0 COMMENT '总优惠券数量',
|
||||
`code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '优惠券模板编码',
|
||||
`rule` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '优惠券规则',
|
||||
`gmt_create` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`gmt_created_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
|
||||
`gmt_modified` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`gmt_modified_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
|
||||
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`create_timed_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
|
||||
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`update_time_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `sms_coupon_template_name_uindex`(`name`) USING BTREE COMMENT '优惠券模板名称全局唯一',
|
||||
UNIQUE INDEX `sms_coupon_template_code_uindex`(`code`) USING BTREE COMMENT '优惠券模板编码全局唯一'
|
||||
@ -139,8 +139,8 @@ CREATE TABLE `sms_seckill_session` (
|
||||
`start_time` datetime NULL DEFAULT NULL COMMENT '每日开始时间',
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '每日结束时间',
|
||||
`status` tinyint(1) NULL DEFAULT NULL COMMENT '启用状态 1-开启 0-关闭',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '秒杀活动场次' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -162,8 +162,8 @@ CREATE TABLE `sms_seckill_sku_relation` (
|
||||
`seckill_count` int NOT NULL DEFAULT 0 COMMENT '秒杀总量',
|
||||
`seckill_limit` int NOT NULL DEFAULT 0 COMMENT '每人限购数量',
|
||||
`seckill_sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '秒杀活动商品关联' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
|
@ -22,8 +22,8 @@ CREATE TABLE `ums_address` (
|
||||
`detail_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址',
|
||||
`zip_code` char(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮编',
|
||||
`defaulted` tinyint NULL DEFAULT NULL COMMENT '是否默认地址',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -61,8 +61,8 @@ CREATE TABLE `ums_member` (
|
||||
`status` tinyint(1) NULL DEFAULT 1,
|
||||
`point` int NULL DEFAULT 0 COMMENT '会员积分',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0,
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
`balance` bigint NULL DEFAULT 1000000000,
|
||||
`city` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
`country` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
|
@ -19,8 +19,8 @@ CREATE TABLE `sys_dept` (
|
||||
`sort` int NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`status` tinyint NULL DEFAULT 1 COMMENT '状态(1:正常;0:禁用)',
|
||||
`deleted` tinyint NULL DEFAULT 0 COMMENT '逻辑删除标识(1:已删除;0:未删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -44,8 +44,8 @@ CREATE TABLE `sys_dict_item` (
|
||||
`status` tinyint NULL DEFAULT 0 COMMENT '状态(1:正常;0:禁用)',
|
||||
`defaulted` tinyint NULL DEFAULT 0 COMMENT '是否默认(1:是;0:否)',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`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;
|
||||
|
||||
@ -83,8 +83,8 @@ CREATE TABLE `sys_dict_type` (
|
||||
`code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '类型编码',
|
||||
`status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0:正常;1:禁用)',
|
||||
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `type_code`(`code`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
@ -111,8 +111,8 @@ CREATE TABLE `sys_menu` (
|
||||
`sort` int NULL DEFAULT 0 COMMENT '排序',
|
||||
`visible` tinyint(1) NULL DEFAULT 1 COMMENT '状态(0:禁用;1:开启)',
|
||||
`redirect` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '跳转路径',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`type` tinyint NULL DEFAULT NULL COMMENT '菜单类型(1:菜单;2:目录;3:外链)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单管理' ROW_FORMAT = DYNAMIC;
|
||||
@ -190,8 +190,8 @@ CREATE TABLE `sys_permission` (
|
||||
`menu_id` int NULL DEFAULT NULL COMMENT '菜单模块ID\r\n',
|
||||
`url_perm` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'URL权限标识',
|
||||
`btn_perm` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '按钮权限标识',
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `id`(`id`, `name`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权限表' ROW_FORMAT = DYNAMIC;
|
||||
@ -216,8 +216,8 @@ CREATE TABLE `sys_role` (
|
||||
`sort` int NULL DEFAULT NULL COMMENT '显示顺序',
|
||||
`status` tinyint(1) NULL DEFAULT 1 COMMENT '角色状态(1-正常;0-停用)',
|
||||
`deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识(0-未删除;1-已删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `name`(`name`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = DYNAMIC;
|
||||
@ -310,8 +310,8 @@ CREATE TABLE `sys_user` (
|
||||
`status` tinyint(1) NULL DEFAULT 1 COMMENT '用户状态((1:正常;0:禁用))',
|
||||
`email` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户邮箱',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除标识(0:未删除;1:已删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `login_name`(`username`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 99 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
@ -46,8 +46,8 @@ CREATE TABLE `oms_order` (
|
||||
`receive_time` datetime NULL DEFAULT NULL COMMENT '确认收货时间',
|
||||
`comment_time` datetime NULL DEFAULT NULL COMMENT '评价时间',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除【0->正常;1->已删除】',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `index_order_sn`(`order_sn`) USING BTREE COMMENT '订单号唯一索引',
|
||||
UNIQUE INDEX `index_otn`(`out_trade_no`) USING BTREE COMMENT '商户订单号唯一索引',
|
||||
@ -121,8 +121,8 @@ CREATE TABLE `oms_order_item` (
|
||||
`count` int NOT NULL DEFAULT 0 COMMENT '商品数量',
|
||||
`total_amount` bigint NOT NULL DEFAULT 0 COMMENT '商品总价(单位:分)',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除标识(1:已删除;0:正常)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `index_order_id`(`order_id`) USING BTREE COMMENT '订单id索引'
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 210 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '订单商品信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
@ -3,99 +3,117 @@
|
||||
|
||||
Source Server : root.youlai.tech
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 80028
|
||||
Source Server Version : 80029
|
||||
Source Host : www.youlai.tech:3306
|
||||
Source Schema : mall_pms
|
||||
|
||||
Target Server Type : MySQL
|
||||
Target Server Version : 80028
|
||||
Target Server Version : 80029
|
||||
File Encoding : 65001
|
||||
|
||||
Date: 05/03/2022 16:40:02
|
||||
Date: 03/07/2022 14:25:36
|
||||
*/
|
||||
use mall_pms;
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_attribute`;
|
||||
CREATE TABLE `pms_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`category_id` bigint NOT NULL COMMENT '分类ID',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性名称',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_attr_pms_category`(`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_attribute
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_attribute` VALUES (34, 5, '颜色', 1, '2021-07-11 17:57:06', '2022-03-05 13:16:30');
|
||||
INSERT INTO `pms_attribute` VALUES (35, 5, '规格', 1, '2021-07-11 18:00:06', '2022-03-05 13:16:30');
|
||||
INSERT INTO `pms_attribute` VALUES (36, 5, '上市时间', 2, '2021-07-11 18:00:08', '2022-03-05 13:16:31');
|
||||
INSERT INTO `pms_attribute` VALUES (47, 8, '阿斯顿', 1, '2022-03-04 13:00:43', '2022-03-04 13:00:43');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_brand
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_brand`;
|
||||
CREATE TABLE `pms_brand` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '品牌名称',
|
||||
`logo_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'LOGO图片',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品品牌表' ROW_FORMAT = DYNAMIC;
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '品牌名称',
|
||||
`logo_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'LOGO图片',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of 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/6c5433c84cc54120996a151c8e6d4cf3.jpg', 1, '2022-03-05 16:12:16', '2022-03-05 16:12:16');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_category`;
|
||||
CREATE TABLE `pms_category` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品分类名称',
|
||||
`parent_id` bigint NOT NULL COMMENT '父级ID',
|
||||
`level` int NULL DEFAULT NULL COMMENT '层级',
|
||||
`icon_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图标地址',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`visible` tinyint(1) NULL DEFAULT 1 COMMENT '显示状态:( 0:隐藏 1:显示)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC;
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品分类名称',
|
||||
`parent_id` bigint NOT NULL COMMENT '父级ID',
|
||||
`level` int NULL DEFAULT NULL COMMENT '层级',
|
||||
`icon_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图标地址',
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`visible` tinyint(1) NULL DEFAULT 1 COMMENT '显示状态:( 0:隐藏 1:显示)',
|
||||
`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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_category
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_category` VALUES (3, '手机配件', 0, 1, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (4, '智能手机', 3, 2, NULL, 1, 1, NULL, NULL);
|
||||
INSERT INTO `pms_category` VALUES (5, '5g手机', 4, 3, 'http://a.youlai.tech:9000/default/f4a27e240c184758942670aad9ce5639.jpg', 1, 1, NULL, '2022-03-05 16:16:16');
|
||||
INSERT INTO `pms_category` VALUES (6, '电脑', 0, 1, 'http://a.youlai.tech:9000/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, 'http://a.youlai.tech:9000/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, 'http://a.youlai.tech:9000/default/840ddc78c93d422b9929821c97f3dfbe.jpg', 2, 1, '2022-02-25 11:23:24', '2022-02-25 11:23:24');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_category_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_category_attribute`;
|
||||
CREATE TABLE `pms_category_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`category_id` bigint NOT NULL COMMENT '分类ID',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性名称',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of 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
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_catetgory_brand`;
|
||||
CREATE TABLE `pms_catetgory_brand` (
|
||||
`category_id` bigint NOT NULL,
|
||||
`brand_id` bigint NOT NULL,
|
||||
PRIMARY KEY (`category_id`) USING BTREE
|
||||
`category_id` bigint NOT NULL,
|
||||
`brand_id` bigint NOT NULL,
|
||||
PRIMARY KEY (`category_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
-- ----------------------------
|
||||
@ -107,109 +125,119 @@ CREATE TABLE `pms_catetgory_brand` (
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_sku`;
|
||||
CREATE TABLE `pms_sku` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`sku_sn` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品编码',
|
||||
`spu_id` bigint NOT NULL COMMENT 'SPU ID',
|
||||
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品名称',
|
||||
`spec_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品规格值,以英文逗号(,)分割',
|
||||
`price` bigint NULL DEFAULT NULL COMMENT '商品价格(单位:分)',
|
||||
`stock_num` int NULL DEFAULT 0 COMMENT '库存数量',
|
||||
`locked_stock_num` int NULL DEFAULT 0 COMMENT '锁定库存数量',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品图片地址',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `fk_pms_sku_pms_spu`(`spu_id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 353 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品库存表' ROW_FORMAT = DYNAMIC;
|
||||
`id` bigint NOT NULL AUTO_INCREMENT,
|
||||
`sku_sn` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品编码',
|
||||
`spu_id` bigint NOT NULL COMMENT 'SPU ID',
|
||||
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品名称',
|
||||
`spec_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品规格值,以英文逗号(,)分割',
|
||||
`price` bigint NULL DEFAULT NULL COMMENT '商品价格(单位:分)',
|
||||
`stock_num` int NULL DEFAULT 0 COMMENT '库存数量',
|
||||
`locked_stock_num` int NULL DEFAULT 0 COMMENT '锁定库存数量',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品图片地址',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_sku
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_sku` VALUES (291, 'sn001', 1, '黑 6+128g', '1_3', 399900, 999, 0, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', '2021-08-08 00:43:26', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (292, 'sn002', 1, '黑 8+256g', '1_4', 499900, 999, 0, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', '2021-08-08 00:43:26', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (353, 'sn003', 1, '蓝 6+128g', '216_3', 399900, 999, 0, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_sku` VALUES (354, 'sn004', 1, '蓝 8+256g', '216_4', 499900, 998, 0, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
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 (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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_spu`;
|
||||
CREATE TABLE `pms_spu` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称',
|
||||
`category_id` bigint NOT NULL COMMENT '商品类型ID',
|
||||
`brand_id` bigint NULL DEFAULT NULL COMMENT '商品品牌ID',
|
||||
`origin_price` bigint NOT NULL COMMENT '原价【起】',
|
||||
`price` bigint NOT NULL COMMENT '现价【起】',
|
||||
`sales` int NULL DEFAULT 0 COMMENT '销量',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品主图',
|
||||
`album` json NULL COMMENT '商品图册',
|
||||
`unit` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位',
|
||||
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品简介',
|
||||
`detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '商品详情',
|
||||
`status` tinyint NULL DEFAULT NULL COMMENT '商品状态:0-下架 1-上架',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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 = 97 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品表' ROW_FORMAT = DYNAMIC;
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称',
|
||||
`category_id` bigint NOT NULL COMMENT '商品类型ID',
|
||||
`brand_id` bigint NULL DEFAULT NULL COMMENT '商品品牌ID',
|
||||
`origin_price` bigint NOT NULL COMMENT '原价【起】',
|
||||
`price` bigint NOT NULL COMMENT '现价【起】',
|
||||
`sales` int NULL DEFAULT 0 COMMENT '销量',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品主图',
|
||||
`album` json NULL COMMENT '商品图册',
|
||||
`unit` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '单位',
|
||||
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品简介',
|
||||
`detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '商品详情',
|
||||
`status` tinyint NULL DEFAULT 1 COMMENT '商品状态(0:下架 1:上架)',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu` VALUES (1, '小米12 PRO', 5, 1, 599900, 599900, 1, 'http://a.youlai.tech:9000/default/1fb5d61cae2c4831a6122ca9ec747624.png', '[\"https://gitee.com/haoxr/image/raw/master/default/image-20210702002909113.png\", \"https://gitee.com/haoxr/image/raw/master/default/image-20210702002909113.png\"]', '台', '好快,好稳,\n好一次强上加强。\n高通全新一代芯片赋能,速度大幅提升。\n三大专业主摄影像加持,能力全面进化。\n大师级设计理念新诠释,质感简而不凡。\n斩获十五项纪录旗舰屏,感官万般出众。', '<p>123123<img src=\"http://a.youlai.tech:9000/default/1a69357664c24962ac23953905c3c38f.png\" alt=\"\" data-href=\"\" style=\"width: 449.00px;height: 449.00px;\"/></p>', 1, NULL, '2022-03-05 15:01:53');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for pms_spu_attribute_value
|
||||
-- Table structure for pms_spu_attribute
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `pms_spu_attribute_value`;
|
||||
CREATE TABLE `pms_spu_attribute_value` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`spu_id` bigint NOT NULL COMMENT '产品ID',
|
||||
`attribute_id` bigint NULL DEFAULT NULL COMMENT '属性ID',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性名称',
|
||||
`value` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性值',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规格图片',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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 = 216 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品属性项表' ROW_FORMAT = DYNAMIC;
|
||||
DROP TABLE IF EXISTS `pms_spu_attribute`;
|
||||
CREATE TABLE `pms_spu_attribute` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`spu_id` bigint NOT NULL COMMENT '产品ID',
|
||||
`attribute_id` bigint NULL DEFAULT NULL COMMENT '属性ID',
|
||||
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性名称',
|
||||
`value` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '属性值',
|
||||
`type` tinyint NOT NULL COMMENT '类型(1:规格;2:属性;)',
|
||||
`pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规格图片',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
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;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of pms_spu_attribute_value
|
||||
-- Records of pms_spu_attribute
|
||||
-- ----------------------------
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (1, 1, 34, '颜色', '黑', 1, 'http://a.youlai.tech:9000/default/6759b824e6d04af69f6f3e55190e7e79.png', NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (4, 1, 35, '规格', '8+256g', 1, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (5, 1, 36, '上市时间', '2021-07-17', 2, NULL, NULL, '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (97, 68, NULL, '颜色', '4123', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (98, 68, NULL, '规格', '456', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (99, 68, NULL, '规格', '123', 1, NULL, '2021-08-07 23:38:50', '2021-08-07 23:38:50');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (100, 69, NULL, '上市时间', '123', 2, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (101, 69, NULL, '颜色', '123', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (102, 69, NULL, '颜色', '4123', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (103, 69, NULL, '规格', '456', 1, NULL, '2021-08-07 23:41:44', '2021-08-07 23:41:44');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (104, 69, NULL, '规格', '123', 1, NULL, '2021-08-07 23:41:45', '2021-08-07 23:41:45');
|
||||
INSERT INTO `pms_spu_attribute_value` VALUES (216, 1, NULL, '颜色', '蓝', 1, 'http://a.youlai.tech:9000/default/aed7966ff68640f08d110f4fbcd1cdc2.png', '2022-03-05 09:25:53', '2022-03-05 15:01:53');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (1, 1, 34, '颜色', '黑', 1, 'https://www.youlai.tech/files/default/c25b39470474494485633c49101a0f5d.png', NULL, '2022-07-03 14:16:16');
|
||||
INSERT INTO `pms_spu_attribute` VALUES (3, 1, 35, '规格', '6+128g', 1, NULL, NULL, '2022-07-03 14:16:16');
|
||||
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');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for undo_log
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `undo_log`;
|
||||
CREATE TABLE `undo_log` (
|
||||
`branch_id` bigint NOT NULL COMMENT 'branch transaction id',
|
||||
`xid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'global transaction id',
|
||||
`context` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'undo_log context,such as serialization',
|
||||
`rollback_info` longblob NOT NULL COMMENT 'rollback info',
|
||||
`log_status` int NOT NULL COMMENT '0:normal status,1:defense status',
|
||||
`log_created` datetime(6) NOT NULL COMMENT 'create datetime',
|
||||
`log_modified` datetime(6) NOT NULL COMMENT 'modify datetime',
|
||||
UNIQUE INDEX `ux_undo_log`(`xid`, `branch_id`) USING BTREE
|
||||
`branch_id` bigint NOT NULL COMMENT 'branch transaction id',
|
||||
`xid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'global transaction id',
|
||||
`context` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'undo_log context,such as serialization',
|
||||
`rollback_info` longblob NOT NULL COMMENT 'rollback info',
|
||||
`log_status` int NOT NULL COMMENT '0:normal status,1:defense status',
|
||||
`log_created` datetime(6) NOT NULL COMMENT 'create datetime',
|
||||
`log_modified` datetime(6) NOT NULL COMMENT 'modify datetime',
|
||||
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;
|
||||
|
@ -33,8 +33,8 @@ CREATE TABLE `sms_advert` (
|
||||
`sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接地址',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '广告表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -68,8 +68,8 @@ CREATE TABLE `sms_coupon` (
|
||||
`end_time` datetime NOT NULL COMMENT '发放结束时间',
|
||||
`valid_days` int NOT NULL DEFAULT 1 COMMENT '自领取之日起有效天数',
|
||||
`status` int NOT NULL DEFAULT 1 COMMENT '逻辑删除使用',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -97,8 +97,8 @@ CREATE TABLE `sms_coupon_record` (
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
|
||||
`order_id` bigint NULL DEFAULT NULL COMMENT '订单id',
|
||||
`status` int NOT NULL DEFAULT 1 COMMENT '逻辑删除使用',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '优惠券领劵使用记录' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -127,10 +127,10 @@ CREATE TABLE `sms_coupon_template` (
|
||||
`total` int NOT NULL DEFAULT 0 COMMENT '总优惠券数量',
|
||||
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '优惠券模板编码',
|
||||
`rule` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '优惠券规则',
|
||||
`gmt_create` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`gmt_created_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
|
||||
`gmt_modified` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`gmt_modified_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
|
||||
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`create_timed_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
|
||||
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||||
`update_time_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `sms_coupon_template_name_uindex`(`name`) USING BTREE COMMENT '优惠券模板名称全局唯一',
|
||||
UNIQUE INDEX `sms_coupon_template_code_uindex`(`code`) USING BTREE COMMENT '优惠券模板编码全局唯一'
|
||||
@ -150,8 +150,8 @@ CREATE TABLE `sms_seckill_session` (
|
||||
`start_time` datetime NULL DEFAULT NULL COMMENT '每日开始时间',
|
||||
`end_time` datetime NULL DEFAULT NULL COMMENT '每日结束时间',
|
||||
`status` tinyint(1) NULL DEFAULT NULL COMMENT '启用状态 1-开启 0-关闭',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '秒杀活动场次' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -173,8 +173,8 @@ CREATE TABLE `sms_seckill_sku_relation` (
|
||||
`seckill_count` int NOT NULL DEFAULT 0 COMMENT '秒杀总量',
|
||||
`seckill_limit` int NOT NULL DEFAULT 0 COMMENT '每人限购数量',
|
||||
`seckill_sort` int NULL DEFAULT NULL COMMENT '排序',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '秒杀活动商品关联' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
|
@ -33,8 +33,8 @@ CREATE TABLE `ums_address` (
|
||||
`detail_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '详细地址',
|
||||
`zip_code` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '邮编',
|
||||
`defaulted` tinyint NULL DEFAULT NULL COMMENT '是否默认地址',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -72,8 +72,8 @@ CREATE TABLE `ums_member` (
|
||||
`status` tinyint(1) NULL DEFAULT 1,
|
||||
`point` int NULL DEFAULT 0 COMMENT '会员积分',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0,
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
`balance` bigint NULL DEFAULT 1000000000,
|
||||
`city` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||||
`country` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
|
||||
|
@ -29,8 +29,8 @@ CREATE TABLE `sys_dept` (
|
||||
`sort` int NULL DEFAULT 0 COMMENT '显示顺序',
|
||||
`status` tinyint NULL DEFAULT 1 COMMENT '状态(1:正常;0:禁用)',
|
||||
`deleted` tinyint NULL DEFAULT 0 COMMENT '逻辑删除标识(1:已删除;0:未删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = DYNAMIC;
|
||||
|
||||
@ -54,8 +54,8 @@ CREATE TABLE `sys_dict_item` (
|
||||
`status` tinyint NULL DEFAULT 0 COMMENT '状态(1:正常;0:禁用)',
|
||||
`defaulted` tinyint NULL DEFAULT 0 COMMENT '是否默认(1:是;0:否)',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`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;
|
||||
|
||||
@ -93,8 +93,8 @@ CREATE TABLE `sys_dict_type` (
|
||||
`code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '类型编码',
|
||||
`status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0:正常;1:禁用)',
|
||||
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `type_code`(`code`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
|
||||
@ -121,8 +121,8 @@ CREATE TABLE `sys_menu` (
|
||||
`sort` int NULL DEFAULT 0 COMMENT '排序',
|
||||
`visible` tinyint(1) NULL DEFAULT 1 COMMENT '状态(0:禁用;1:开启)',
|
||||
`redirect` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '跳转路径',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`type` tinyint NULL DEFAULT NULL COMMENT '菜单类型(1:菜单;2:目录;3:外链)',
|
||||
PRIMARY KEY (`id`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单管理' ROW_FORMAT = DYNAMIC;
|
||||
@ -200,8 +200,8 @@ CREATE TABLE `sys_permission` (
|
||||
`menu_id` int NULL DEFAULT NULL COMMENT '菜单模块ID\r\n',
|
||||
`url_perm` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'URL权限标识',
|
||||
`btn_perm` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '按钮权限标识',
|
||||
`gmt_create` datetime NULL DEFAULT NULL,
|
||||
`gmt_modified` datetime NULL DEFAULT NULL,
|
||||
`create_time` datetime NULL DEFAULT NULL,
|
||||
`update_time` datetime NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `id`(`id`, `name`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限表' ROW_FORMAT = DYNAMIC;
|
||||
@ -226,8 +226,8 @@ CREATE TABLE `sys_role` (
|
||||
`sort` int NULL DEFAULT NULL COMMENT '显示顺序',
|
||||
`status` tinyint(1) NULL DEFAULT 1 COMMENT '角色状态(1-正常;0-停用)',
|
||||
`deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识(0-未删除;1-已删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `name`(`name`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色表' ROW_FORMAT = DYNAMIC;
|
||||
@ -320,8 +320,8 @@ CREATE TABLE `sys_user` (
|
||||
`status` tinyint(1) NULL DEFAULT 1 COMMENT '用户状态((1:正常;0:禁用))',
|
||||
`email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户邮箱',
|
||||
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '逻辑删除标识(0:未删除;1:已删除)',
|
||||
`gmt_create` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`gmt_modified` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE INDEX `login_name`(`username`) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 99 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC;
|
||||
|
Loading…
Reference in New Issue
Block a user