1
0
mirror of https://gitee.com/coder-xiaomo/flashsale synced 2025-09-11 22:41:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

秒杀(SpringBoot构建电商基础秒杀项目 基础部分完成)

This commit is contained in:
2022-03-05 16:48:37 +08:00
parent bad79611bf
commit 029fb6432e
11 changed files with 128 additions and 52 deletions

View File

@@ -11,7 +11,7 @@
Target Server Version : 50726
File Encoding : 65001
Date: 05/03/2022 15:19:32
Date: 05/03/2022 16:32:52
*/
SET NAMES utf8mb4;
@@ -93,6 +93,7 @@ CREATE TABLE `order_info` (
`item_price` decimal(10, 2) NOT NULL,
`amount` int(255) NOT NULL,
`order_price` decimal(10, 2) NOT NULL,
`promo_id` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
@@ -114,7 +115,7 @@ CREATE TABLE `promo_info` (
PRIMARY KEY (`id`) USING BTREE,
INDEX `item_id`(`item_id`) USING BTREE,
CONSTRAINT `promo_info_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `item_info` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of promo_info
@@ -135,7 +136,7 @@ CREATE TABLE `sequence_info` (
-- ----------------------------
-- Records of sequence_info
-- ----------------------------
INSERT INTO `sequence_info` VALUES ('order_info', 0, 1);
INSERT INTO `sequence_info` VALUES ('order_info', 5, 1);
-- ----------------------------
-- Table structure for user_info