第六次实验

master
viola 2 years ago
parent 295065b9ff
commit d58d719975

@ -1,17 +1,17 @@
/*
Navicat Premium Data Transfer
Source Server : test
Source Server :
Source Server Type : MySQL
Source Server Version : 50727
Source Server Version : 80026
Source Host : localhost:3306
Source Schema : orange
Target Server Type : MySQL
Target Server Version : 50727
Target Server Version : 80026
File Encoding : 65001
Date: 11/01/2020 16:53:36
Date: 27/04/2023 20:34:13
*/
SET NAMES utf8mb4;
@ -22,7 +22,7 @@ SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
DROP TABLE IF EXISTS `orange_message`;
CREATE TABLE `orange_message` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`id` int unsigned NOT NULL,
`content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`send_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`used` enum('YES','NO') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'NO',
@ -45,7 +45,7 @@ INSERT INTO `orange_message` VALUES (7, '今天出太阳了,天气很好', '20
-- ----------------------------
DROP TABLE IF EXISTS `orange_product`;
CREATE TABLE `orange_product` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`id` int unsigned NOT NULL COMMENT '自增主键',
`name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品名字',
`img_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '商品图片地址',
`price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '商品价格',
@ -56,19 +56,19 @@ CREATE TABLE `orange_product` (
-- ----------------------------
-- Records of orange_product
-- ----------------------------
INSERT INTO `orange_product` VALUES (1, '苹果', 'http://172.16.40.55:8081/uploaded/apple.png', 19.90, '2019-12-16 15:58:05');
INSERT INTO `orange_product` VALUES (2, '香梨', 'http://172.16.40.55:8081/uploaded/li.png', 9.99, '2019-12-16 18:19:09');
INSERT INTO `orange_product` VALUES (3, '橙子', 'http://172.16.40.55:8081/uploaded/orange.png', 222.00, '2019-12-17 02:29:50');
INSERT INTO `orange_product` VALUES (4, '百香果', 'http://172.16.40.55:8081/uploaded/baixiangguo.png', 3.00, '2019-12-17 02:38:29');
INSERT INTO `orange_product` VALUES (1, '苹果', 'http://192.168.147.1:8081/uploaded/apple.png', 19.90, '2019-12-16 15:58:05');
INSERT INTO `orange_product` VALUES (2, '香梨', 'http://192.168.147.1:8081/uploaded/li.png', 9.99, '2019-12-16 18:19:09');
INSERT INTO `orange_product` VALUES (3, '橙子', 'http://192.168.147.1:8081/uploaded/orange.png', 222.00, '2019-12-17 02:29:50');
INSERT INTO `orange_product` VALUES (4, '百香果', 'http://192.168.147.1:8081/uploaded/baixiangguo.png', 3.00, '2019-12-17 02:38:29');
-- ----------------------------
-- Table structure for orange_sale
-- ----------------------------
DROP TABLE IF EXISTS `orange_sale`;
CREATE TABLE `orange_sale` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL DEFAULT 0,
`sales_num` int(11) NOT NULL DEFAULT 0,
`id` int unsigned NOT NULL,
`product_id` int(0) NOT NULL DEFAULT 0,
`sales_num` int(0) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
@ -77,10 +77,10 @@ CREATE TABLE `orange_sale` (
-- ----------------------------
DROP TABLE IF EXISTS `orange_shoppingcart`;
CREATE TABLE `orange_shoppingcart` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户id',
`product_id` int(11) NOT NULL DEFAULT 0 COMMENT '商品id',
`num` int(11) NOT NULL DEFAULT 0 COMMENT '数量',
`id` int unsigned NOT NULL COMMENT '自增主键',
`user_id` int(0) NOT NULL DEFAULT 0 COMMENT '用户id',
`product_id` int(0) NOT NULL DEFAULT 0 COMMENT '商品id',
`num` int(0) NOT NULL DEFAULT 0 COMMENT '数量',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
@ -89,7 +89,7 @@ CREATE TABLE `orange_shoppingcart` (
-- ----------------------------
DROP TABLE IF EXISTS `orange_user`;
CREATE TABLE `orange_user` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
`id` int unsigned NOT NULL COMMENT '主键',
`username` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
`sex` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',

Loading…
Cancel
Save