/*
 Navicat Premium Data Transfer

 Source Server         : localhost_3306
 Source Server Type    : MySQL
 Source Server Version : 80033
 Source Host           : localhost:3306
 Source Schema         : orange

 Target Server Type    : MySQL
 Target Server Version : 80033
 File Encoding         : 65001

 Date: 12/05/2023 22:43:53
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for orange_message
-- ----------------------------
DROP TABLE IF EXISTS `orange_message`;
CREATE TABLE `orange_message`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT,
  `content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
  `send_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
  `used` enum('YES','NO') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'NO',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of orange_message
-- ----------------------------
INSERT INTO `orange_message` VALUES (1, '测试新消息', '2019-12-16 10:36:28', 'YES');
INSERT INTO `orange_message` VALUES (2, '添加一条新消息测试', '2019-12-17 15:33:27', 'YES');
INSERT INTO `orange_message` VALUES (3, '测试退出消息', '2019-12-17 15:34:32', 'YES');
INSERT INTO `orange_message` VALUES (4, '再次测试', '2019-12-17 15:35:38', 'YES');
INSERT INTO `orange_message` VALUES (5, '今天天气真好', '2019-12-17 15:39:20', 'YES');
INSERT INTO `orange_message` VALUES (6, '今天好热啊', '2019-12-17 17:24:13', 'YES');
INSERT INTO `orange_message` VALUES (7, '今天出太阳了，天气很好', '2019-12-25 17:29:28', 'YES');
INSERT INTO `orange_message` VALUES (30, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 16:58:05', 'YES');
INSERT INTO `orange_message` VALUES (31, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 16:59:04', 'YES');
INSERT INTO `orange_message` VALUES (32, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 16:59:04', 'YES');
INSERT INTO `orange_message` VALUES (33, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 17:00:29', 'YES');
INSERT INTO `orange_message` VALUES (34, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 17:07:42', 'YES');
INSERT INTO `orange_message` VALUES (35, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 17:08:06', 'YES');
INSERT INTO `orange_message` VALUES (36, '五一快乐！今年的五一去哪里玩呢，快来看一看大家都去哪玩儿吧~~', '2023-05-02 17:09:10', 'YES');

-- ----------------------------
-- Table structure for orange_product
-- ----------------------------
DROP TABLE IF EXISTS `orange_product`;
CREATE TABLE `orange_product`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT 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 COMMENT '商品价格',
  `add_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '商品上市时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of orange_product
-- ----------------------------
INSERT INTO `orange_product` VALUES (1, '猫粮', 'http://10.21.120.101:8081/uploaded/maoliang.png', 29.99, '2023-05-02 16:37:46');
INSERT INTO `orange_product` VALUES (2, '猫玩具', 'http://10.21.120.101:8081/uploaded/maowanju.png', 9.99, '2023-05-02 16:39:28');
INSERT INTO `orange_product` VALUES (3, '猫窝', 'http://10.21.120.101:8081/uploaded/maowo.png', 99.00, '2023-05-02 16:40:50');
INSERT INTO `orange_product` VALUES (4, '猫粮', 'http://10.21.120.101:8081/uploaded/ml.png', 36.00, '2023-05-02 16:41:54');
INSERT INTO `orange_product` VALUES (5, '猫粮盆', 'http://10.21.120.101:8081/uploaded/mlp.png', 9.00, '2023-05-02 16:42:54');
INSERT INTO `orange_product` VALUES (6, '香梨', 'http://10.21.120.101:8081/uploaded/li.png', 9.99, '2019-12-16 18:19:09');
INSERT INTO `orange_product` VALUES (7, '橙子', 'http://10.21.120.101:8081/uploaded/orange.png', 222.00, '2019-12-17 02:29:50');
INSERT INTO `orange_product` VALUES (8, '苹果', 'http://10.21.120.101:8081/uploaded/apple.png', 19.90, '2019-12-16 15:58:05');

-- ----------------------------
-- Table structure for orange_sale
-- ----------------------------
DROP TABLE IF EXISTS `orange_sale`;
CREATE TABLE `orange_sale`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT,
  `product_id` int(0) NOT NULL DEFAULT 0,
  `sales_num` int(0) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of orange_sale
-- ----------------------------

-- ----------------------------
-- Table structure for orange_shoppingcart
-- ----------------------------
DROP TABLE IF EXISTS `orange_shoppingcart`;
CREATE TABLE `orange_shoppingcart`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT 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 = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of orange_shoppingcart
-- ----------------------------
INSERT INTO `orange_shoppingcart` VALUES (1, 1, 1, 1);
INSERT INTO `orange_shoppingcart` VALUES (2, 1, 2, 3);
INSERT INTO `orange_shoppingcart` VALUES (3, 5, 3, 0);
INSERT INTO `orange_shoppingcart` VALUES (4, 13, 3, 5);
INSERT INTO `orange_shoppingcart` VALUES (5, 13, 4, 2);

-- ----------------------------
-- Table structure for orange_user
-- ----------------------------
DROP TABLE IF EXISTS `orange_user`;
CREATE TABLE `orange_user`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT 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 '',
  `city` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of orange_user
-- ----------------------------
INSERT INTO `orange_user` VALUES (1, '123', '123321', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (2, 'xiaoming', '123456', '女', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (3, 'xiaoliang', '123456', '女', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (4, 'zsss', '123456', '女', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (5, 'xiaowang', '12345678', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (6, '1', '1', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (7, '1', '1', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (8, '1', '1', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (9, '1', '1', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (11, 'admin', '1', '男', '江西省 赣州市 章贡区');
INSERT INTO `orange_user` VALUES (13, '2', '2', '男', '江西省 赣州市 章贡区');

SET FOREIGN_KEY_CHECKS = 1;
