/*
Navicat MySQL Data Transfer

Source Server         : cl
Source Server Version : 80032
Source Host           : localhost:3306
Source Database       : rjgc

Target Server Type    : MYSQL
Target Server Version : 80032
File Encoding         : 65001

Date: 2024-06-26 17:50:22
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) DEFAULT NULL,
  `cover` varchar(45) DEFAULT NULL,
  `image1` varchar(45) DEFAULT NULL,
  `image2` varchar(45) DEFAULT NULL,
  `price` float DEFAULT NULL,
  `intro` varchar(300) DEFAULT NULL,
  `stock` int DEFAULT NULL,
  `type_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_type_id_idx` (`type_id`),
  CONSTRAINT `fk_type_id` FOREIGN KEY (`type_id`) REFERENCES `type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of goods
-- ----------------------------
INSERT INTO `goods` VALUES ('9', 'Apple iPhone 15 Pro Max', '/picture/iPhone1.jpg', '/picture/iPhone2.jpg', '/picture/iPhone3.jpg', '6999', 'Apple iPhone 15 Pro Max采用了全新设计的超视网膜XDR显示屏，搭载了更强大的A17仿生芯片，并配备了升级的摄像系统，为用户带来前所未有的性能和拍照体验。', '10', '1');
INSERT INTO `goods` VALUES ('16', 'Samsung Galaxy S24 Ultra', '/picture/Samsung-Galaxy-S24-Ultra1.jpg', '/picture/Samsung-Galaxy-S24-Ultra2.jpg', '/picture/Samsung-Galaxy-S24-Ultra3.jpg', '5999', 'Samsung Galaxy S24 Ultra搭载了最新的Exynos或高通骁龙旗舰处理器，配备了先进的Dynamic AMOLED 4X显示屏，支持超高刷新率和全新升级的摄像系统。', '10', '1');
INSERT INTO `goods` VALUES ('23', 'Huawei Mate 60 Pro', '/picture/60p1.jpg', '/picture/60p2.jpg', '/picture/60p3.jpg', '6999', 'Huawei Mate 60 Pro采用了全新设计的OLED屏幕，搭载自研的麒麟新一代旗舰芯片，拥有业界领先的摄像系统和出色的快充技术。', '10', '1');
INSERT INTO `goods` VALUES ('30', 'Xiaomi 13 Ultra', '/picture/xiaomi131.jpg', '/picture/xiaomi132.jpg', '/picture/xiaomi133.jpg', '4599', 'Xiaomi 13 Ultra配备了顶级的高分辨率AMOLED屏幕，搭载高通骁龙最新旗舰处理器，并拥有业界领先的摄像技术和强大的续航能力。', '10', '1');
INSERT INTO `goods` VALUES ('37', 'OPPO Find X6 Pro', '/picture/op1.jpg', '/picture/op2.jpg', '/picture/op3.jpg', '4999', 'OPPO Find X6 Pro采用了最新的QHD+ AMOLED屏幕技术，支持高刷新率，并搭载了高通骁龙旗舰处理器和先进的摄像系统，为用户带来极致的视听和拍照体验。', '10', '1');
INSERT INTO `goods` VALUES ('111', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('112', 'vivo X100', '/picture/x1001.jpg', '/picture/x1002.jpg', '/picture/x1003.jpg', '3999', '搭载蓝晶x天玑9300旗舰芯片，配备6.78英寸120Hz超视网膜8T护眼屏，支持120W双芯闪充，后置蔡司全焦段影像系统。', '10', '1');
INSERT INTO `goods` VALUES ('113', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('114', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('115', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('116', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('117', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('118', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('119', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('120', 'Redmi K70', '/picture/k701.jpg', '/picture/k702.jpg', '/picture/k703.jpg', '1999', '搭载第二代骁龙8旗舰芯，配备6.67英寸华语C8 2K小米青山护眼屏，支持120W疾速快充，后置5000万光影猎人800大底主摄。', '10', '1');
INSERT INTO `goods` VALUES ('121', '南卡OE MIX开放式耳机', '/picture/nk1.jpg', '/picture/nk2.jpg', '/picture/nk3.jpg', '999', '性价比极高的开放式耳机，凭借其深厚的音频调校技术和对极致性能的执着追求，赢得了广大消费者的青睐。', '10', '2');
INSERT INTO `goods` VALUES ('122', '西圣电容笔', '/picture/xs1.jpg', '/picture/xs2.jpg', '/picture/xs3.jpg', '3999', 'Apple Pencil的优质替代品，性价比高，适合无纸化学习和工作。', '10', '2');
INSERT INTO `goods` VALUES ('123', '南卡骨传导耳机Runner3', '/picture/nkg1.jpg', '/picture/nkg2.jpg', '/picture/nkg3.jpg', '289', '采用创新技术的骨传导耳机，音质震撼，防水耐用，适合运动时使用。', '10', '2');
INSERT INTO `goods` VALUES ('124', '希亦CG超声波清洗机', '/picture/yx1.jpg', '/picture/yx2.jpg', '/picture/yx3.jpg', '99', '高效、洁净的超声波清洗机，支持除菌消毒，适合清洁各种物品。', '10', '2');
INSERT INTO `goods` VALUES ('125', '南卡OE MIX开放式耳机', '/picture/nk1.jpg', '/picture/nk2.jpg', '/picture/nk3.jpg', '999', '性价比极高的开放式耳机，凭借其深厚的音频调校技术和对极致性能的执着追求，赢得了广大消费者的青睐。', '10', '2');
INSERT INTO `goods` VALUES ('126', '西圣电容笔', '/picture/xs1.jpg', '/picture/xs2.jpg', '/picture/xs3.jpg', '3999', 'Apple Pencil的优质替代品，性价比高，适合无纸化学习和工作。', '10', '2');
INSERT INTO `goods` VALUES ('127', '南卡骨传导耳机Runner3', '/picture/nkg1.jpg', '/picture/nkg2.jpg', '/picture/nkg3.jpg', '289', '采用创新技术的骨传导耳机，音质震撼，防水耐用，适合运动时使用。', '10', '2');
INSERT INTO `goods` VALUES ('128', '希亦CG超声波清洗机', '/picture/yx1.jpg', '/picture/yx2.jpg', '/picture/yx3.jpg', '99', '高效、洁净的超声波清洗机，支持除菌消毒，适合清洁各种物品。', '10', '2');
INSERT INTO `goods` VALUES ('129', '南卡OE MIX开放式耳机', '/picture/nk1.jpg', '/picture/nk2.jpg', '/picture/nk3.jpg', '999', '性价比极高的开放式耳机，凭借其深厚的音频调校技术和对极致性能的执着追求，赢得了广大消费者的青睐。', '10', '2');
INSERT INTO `goods` VALUES ('130', '西圣电容笔', '/picture/xs1.jpg', '/picture/xs2.jpg', '/picture/xs3.jpg', '3999', 'Apple Pencil的优质替代品，性价比高，适合无纸化学习和工作。', '10', '2');
INSERT INTO `goods` VALUES ('131', '南卡骨传导耳机Runner3', '/picture/nkg1.jpg', '/picture/nkg2.jpg', '/picture/nkg3.jpg', '289', '采用创新技术的骨传导耳机，音质震撼，防水耐用，适合运动时使用。', '10', '2');
INSERT INTO `goods` VALUES ('132', '希亦CG超声波清洗机', '/picture/yx1.jpg', '/picture/yx2.jpg', '/picture/yx3.jpg', '99', '高效、洁净的超声波清洗机，支持除菌消毒，适合清洁各种物品。', '10', '2');
INSERT INTO `goods` VALUES ('133', '青蛙卡通人偶服装', '/picture/guagua1.jpg', '/picture/guagua2.jpg', '/picture/guagua3.jpg', '86', '青蛙卡通人偶服装人穿玩偶癞蛤蟆气模毛绒头套动漫抖音网红同款装', '10', '3');
INSERT INTO `goods` VALUES ('134', '安踏运动t恤', '/picture/anta1.jpg', '/picture/anta2.jpg', '/picture/anta3.jpg', '99', '安踏运动t恤男女同款2024夏季新款纯色百搭短袖简约休闲透气T恤', '10', '3');
INSERT INTO `goods` VALUES ('135', '李宁运动七分裤男款', '/picture/ln1.jpg', '/picture/ln2.jpg', '/picture/ln3.jpg', '159', '李宁运动七分裤男款夏季冰丝透气宽松大码青少年休闲裤子速干短裤', '10', '3');
INSERT INTO `goods` VALUES ('136', '耐克男女中高考满分T恤', '/picture/Nike1.jpg', '/picture/Nike2.jpg', '/picture/Nike3.jpg', '199', '耐克男女中高考满分T恤学生答题卡全对休闲短袖 FJ7725-010-100', '10', '3');
INSERT INTO `goods` VALUES ('137', '青蛙卡通人偶服装', '/picture/guagua1.jpg', '/picture/guagua2.jpg', '/picture/guagua3.jpg', '86', '青蛙卡通人偶服装人穿玩偶癞蛤蟆气模毛绒头套动漫抖音网红同款装', '10', '3');
INSERT INTO `goods` VALUES ('138', '安踏运动t恤', '/picture/anta1.jpg', '/picture/anta2.jpg', '/picture/anta3.jpg', '99', '安踏运动t恤男女同款2024夏季新款纯色百搭短袖简约休闲透气T恤', '10', '3');
INSERT INTO `goods` VALUES ('139', '李宁运动七分裤男款', '/picture/ln1.jpg', '/picture/ln2.jpg', '/picture/ln3.jpg', '159', '李宁运动七分裤男款夏季冰丝透气宽松大码青少年休闲裤子速干短裤', '10', '3');
INSERT INTO `goods` VALUES ('140', '耐克男女中高考满分T恤', '/picture/Nike1.jpg', '/picture/Nike2.jpg', '/picture/Nike3.jpg', '199', '耐克男女中高考满分T恤学生答题卡全对休闲短袖 FJ7725-010-100', '10', '3');
INSERT INTO `goods` VALUES ('141', '《答案之书》', '/picture/ts1.png', '/picture/ts1-1.png', '/picture/ts1-2.png', '50', '《答案之书》是一本重新定义了读者-作者关系的书籍，旨在帮助人们在生活中遇到纷扰繁杂的小事时做出决定。', '10', '8');
INSERT INTO `goods` VALUES ('142', '《羊皮卷》', '/picture/ts3.png', '/picture/ts3-1.png', '/picture/ts3-2.png', '66', '羊皮卷，作为西方古代重要的书写材料之一，是通过将羊皮泡在石灰水中、拉伸、刮光、晾干等步骤制作而成的书写媒介。这种材料的成本较高，但由于其柔软而坚韧的特质，使得它成为长期保存文字和知识的理想选择。', '10', '8');
INSERT INTO `goods` VALUES ('143', '《燕食记》', '/picture/ts2.png', '/picture/ts2-1.png', '/picture/ts2-2.png', '40', '《燕食记》是葛亮的最新长篇小说，以宏阔的笔力书写了中国近现代历史。这部作品沿着广东饮食文化的发展线索，通过荣贻生、陈五举师徒二人的传奇身世及薪火存续，展现了辛亥革命以来粤港两地的时代风云兴变。', '10', '8');
INSERT INTO `goods` VALUES ('144', '《答案之书》', '/picture/ts1.png', '/picture/ts1-1.png', '/picture/ts1-2.png', '50', '《答案之书》是一本重新定义了读者-作者关系的书籍，旨在帮助人们在生活中遇到纷扰繁杂的小事时做出决定。', '10', '8');
INSERT INTO `goods` VALUES ('145', '《羊皮卷》', '/picture/ts3.png', '/picture/ts3-1.png', '/picture/ts3-2.png', '66', '羊皮卷，作为西方古代重要的书写材料之一，是通过将羊皮泡在石灰水中、拉伸、刮光、晾干等步骤制作而成的书写媒介。这种材料的成本较高，但由于其柔软而坚韧的特质，使得它成为长期保存文字和知识的理想选择。', '10', '8');
INSERT INTO `goods` VALUES ('146', '《燕食记》', '/picture/ts2.png', '/picture/ts2-1.png', '/picture/ts2-2.png', '40', '《燕食记》是葛亮的最新长篇小说，以宏阔的笔力书写了中国近现代历史。这部作品沿着广东饮食文化的发展线索，通过荣贻生、陈五举师徒二人的传奇身世及薪火存续，展现了辛亥革命以来粤港两地的时代风云兴变。', '10', '8');
INSERT INTO `goods` VALUES ('147', '《答案之书》', '/picture/ts1.png', '/picture/ts1-1.png', '/picture/ts1-2.png', '50', '《答案之书》是一本重新定义了读者-作者关系的书籍，旨在帮助人们在生活中遇到纷扰繁杂的小事时做出决定。', '10', '8');
INSERT INTO `goods` VALUES ('148', '《羊皮卷》', '/picture/ts3.png', '/picture/ts3-1.png', '/picture/ts3-2.png', '66', '羊皮卷，作为西方古代重要的书写材料之一，是通过将羊皮泡在石灰水中、拉伸、刮光、晾干等步骤制作而成的书写媒介。这种材料的成本较高，但由于其柔软而坚韧的特质，使得它成为长期保存文字和知识的理想选择。', '10', '8');
INSERT INTO `goods` VALUES ('149', '《燕食记》', '/picture/ts2.png', '/picture/ts2-1.png', '/picture/ts2-2.png', '40', '《燕食记》是葛亮的最新长篇小说，以宏阔的笔力书写了中国近现代历史。这部作品沿着广东饮食文化的发展线索，通过荣贻生、陈五举师徒二人的传奇身世及薪火存续，展现了辛亥革命以来粤港两地的时代风云兴变。', '10', '8');
INSERT INTO `goods` VALUES ('150', '《答案之书》', '/picture/ts1.png', '/picture/ts1-1.png', '/picture/ts1-2.png', '50', '《答案之书》是一本重新定义了读者-作者关系的书籍，旨在帮助人们在生活中遇到纷扰繁杂的小事时做出决定。', '10', '8');
INSERT INTO `goods` VALUES ('151', '《羊皮卷》', '/picture/ts3.png', '/picture/ts3-1.png', '/picture/ts3-2.png', '66', '羊皮卷，作为西方古代重要的书写材料之一，是通过将羊皮泡在石灰水中、拉伸、刮光、晾干等步骤制作而成的书写媒介。这种材料的成本较高，但由于其柔软而坚韧的特质，使得它成为长期保存文字和知识的理想选择。', '10', '8');
INSERT INTO `goods` VALUES ('152', '《燕食记》', '/picture/ts2.png', '/picture/ts2-1.png', '/picture/ts2-2.png', '40', '《燕食记》是葛亮的最新长篇小说，以宏阔的笔力书写了中国近现代历史。这部作品沿着广东饮食文化的发展线索，通过荣贻生、陈五举师徒二人的传奇身世及薪火存续，展现了辛亥革命以来粤港两地的时代风云兴变。', '10', '8');
INSERT INTO `goods` VALUES ('153', '二手手表', '/picture/es1.png', '/picture/es1-1.png', '/picture/es2-2.png', '50', '二手手表', '10', '11');
INSERT INTO `goods` VALUES ('154', '二手手机', '/picture/es2.png', '/picture/es2-1.png', '/picture/es2-2.png', '200', '二手手机', '10', '11');
INSERT INTO `goods` VALUES ('155', '二手柜子', '/picture/es3.png', '/picture/es3-1.png', '/picture/es3-2.png', '40', '二手柜子', '10', '11');
INSERT INTO `goods` VALUES ('156', '二手手表', '/picture/es1.png', '/picture/es1-1.png', '/picture/es2-2.png', '50', '二手手表', '10', '11');
INSERT INTO `goods` VALUES ('157', '二手手机', '/picture/es2.png', '/picture/es2-1.png', '/picture/es2-2.png', '200', '二手手机', '10', '11');
INSERT INTO `goods` VALUES ('158', '二手柜子', '/picture/es3.png', '/picture/es3-1.png', '/picture/es3-2.png', '40', '二手柜子', '10', '11');
INSERT INTO `goods` VALUES ('159', '二手手表', '/picture/es1.png', '/picture/es1-1.png', '/picture/es2-2.png', '50', '二手手表', '10', '11');
INSERT INTO `goods` VALUES ('160', '二手手机', '/picture/es2.png', '/picture/es2-1.png', '/picture/es2-2.png', '200', '二手手机', '10', '11');
INSERT INTO `goods` VALUES ('161', '二手柜子', '/picture/es3.png', '/picture/es3-1.png', '/picture/es3-2.png', '40', '二手柜子', '10', '11');
INSERT INTO `goods` VALUES ('162', '二手手表', '/picture/es1.png', '/picture/es1-1.png', '/picture/es2-2.png', '50', '二手手表', '10', '11');
INSERT INTO `goods` VALUES ('163', '二手手机', '/picture/es2.png', '/picture/es2-1.png', '/picture/es2-2.png', '200', '二手手机', '10', '11');
INSERT INTO `goods` VALUES ('164', '二手柜子', '/picture/es3.png', '/picture/es3-1.png', '/picture/es3-2.png', '40', '二手柜子', '10', '11');
INSERT INTO `goods` VALUES ('165', '二手手表', '/picture/es1.png', '/picture/es1-1.png', '/picture/es2-2.png', '50', '二手手表', '10', '11');
INSERT INTO `goods` VALUES ('166', '二手手机', '/picture/es2.png', '/picture/es2-1.png', '/picture/es2-2.png', '200', '二手手机', '10', '11');
INSERT INTO `goods` VALUES ('167', '二手柜子', '/picture/es3.png', '/picture/es3-1.png', '/picture/es3-2.png', '40', '二手柜子', '10', '11');
INSERT INTO `goods` VALUES ('168', '口红', '/picture/kouhong.jpg', '/picture/kouhong1.jpg', '/picture/kouhong2.jpg', '200', '增加或改变嘴唇的色泽和轮廓，赋予嘴唇色彩，强调或改变两唇的轮廓，使嘴唇看起来更有生气和活力。', '10', '5');
INSERT INTO `goods` VALUES ('169', '口红', '/picture/kouhong.jpg', '/picture/kouhong1.jpg', '/picture/kouhong2.jpg', '200', '增加或改变嘴唇的色泽和轮廓，赋予嘴唇色彩，强调或改变两唇的轮廓，使嘴唇看起来更有生气和活力。', '10', '5');
INSERT INTO `goods` VALUES ('170', '眉粉', '/picture/mifen.jpg', '/picture/mifen1.jpg', '/picture/mifen2.jpg', '100', '眉粉是一种用于修饰和填充眉毛的化妆品，它能够使眉毛看起来更加浓密、自然，并帮助塑造理想的眉形。眉粉通常由矿物质和天然颜料制成，颜色多样，可根据个人发色和肤色选择适合的色号。', '10', '5');
INSERT INTO `goods` VALUES ('171', '乳液', '/picture/ruye.jpg', '/picture/ruye1.jpg', '/picture/ruye2.jpg', '50', '乳液中的含水量很高，可以瞬间滋润肌肤，为干燥肌肤补充水分。同时，乳液能在肌肤表面形成轻薄透气的保护膜，防止水分流失，从而起到极佳的保湿效果。', '10', '5');
INSERT INTO `goods` VALUES ('172', '香水', '/picture/xiangshui.jpg', '/picture/xiangshui1.jpg', '/picture/xiangshui2.jpg', '50', '香水主要由香料、乙醇和可能的其他添加剂组成。', '10', '5');
INSERT INTO `goods` VALUES ('173', '餐桌', '/picture/canzhuo.jpg', '/picture/canzhuo1.jpg', '/picture/canzhuo2.jpg', '3000', '简约餐桌', '10', '4');
INSERT INTO `goods` VALUES ('174', '茶几', '/picture/chaji.jpg', '/picture/chaji1.jpg', '/picture/chaji2.jpg', '2500', '简约茶几', '10', '4');
INSERT INTO `goods` VALUES ('175', '床', '/picture/chuang.jpg', '/picture/chuang1.jpg', '/picture/chuang2.jpg', '3000', '舒适的床', '10', '4');
INSERT INTO `goods` VALUES ('176', '电视柜', '/picture/dianshigui.jpg', '/picture/dianshigui1.jpg', '/picture/dianshigui2.jpg', '1000', '简约电视柜', '10', '4');

-- ----------------------------
-- Table structure for order
-- ----------------------------
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
  `id` int NOT NULL AUTO_INCREMENT,
  `total` float DEFAULT NULL,
  `amount` int DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `paytype` tinyint(1) DEFAULT NULL,
  `name` varchar(45) DEFAULT NULL,
  `phone` varchar(45) DEFAULT NULL,
  `address` varchar(45) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_user_id_idx` (`user_id`),
  CONSTRAINT `fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of order
-- ----------------------------
INSERT INTO `order` VALUES ('83', '299', '1', '2', '1', 'cx', '9090980', '西南财经大学天府学院', '2024-06-16 07:47:53', '42');
INSERT INTO `order` VALUES ('84', '31995', '2', '2', '2', 'cx', '9090980', '西南财经大学天府学院', '2024-06-16 10:04:08', '42');
INSERT INTO `order` VALUES ('85', '14396', '2', '2', '1', 'cx', '9090980', '西南财经大学天府学院', '2024-06-16 14:06:00', '42');
INSERT INTO `order` VALUES ('86', '132', '1', '2', '2', 'cx', '9090980', '西南财经大学天府学院', '2024-06-16 14:07:16', '42');

-- ----------------------------
-- Table structure for orderitem
-- ----------------------------
DROP TABLE IF EXISTS `orderitem`;
CREATE TABLE `orderitem` (
  `id` int NOT NULL AUTO_INCREMENT,
  `price` float DEFAULT NULL,
  `amount` int DEFAULT NULL,
  `goods_id` int DEFAULT NULL,
  `order_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_order_id_idx` (`order_id`),
  KEY `fk_orderitem_goods_id_idx` (`goods_id`),
  CONSTRAINT `fk_order_id` FOREIGN KEY (`order_id`) REFERENCES `order` (`id`),
  CONSTRAINT `fk_orderitem_goods_id` FOREIGN KEY (`goods_id`) REFERENCES `goods` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=96 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of orderitem
-- ----------------------------
INSERT INTO `orderitem` VALUES ('90', '299', '1', '9', '83');
INSERT INTO `orderitem` VALUES ('91', '5999', '3', '16', '84');
INSERT INTO `orderitem` VALUES ('92', '6999', '2', '9', '84');
INSERT INTO `orderitem` VALUES ('93', '6999', '2', '9', '85');
INSERT INTO `orderitem` VALUES ('94', '199', '2', '140', '85');
INSERT INTO `orderitem` VALUES ('95', '66', '2', '151', '86');

-- ----------------------------
-- Table structure for recommend
-- ----------------------------
DROP TABLE IF EXISTS `recommend`;
CREATE TABLE `recommend` (
  `id` int NOT NULL AUTO_INCREMENT,
  `type` tinyint(1) DEFAULT NULL,
  `goods_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_goods_id_idx` (`goods_id`),
  CONSTRAINT `fk_goods_id` FOREIGN KEY (`goods_id`) REFERENCES `goods` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of recommend
-- ----------------------------
INSERT INTO `recommend` VALUES ('10', '2', '9');
INSERT INTO `recommend` VALUES ('15', '2', '112');
INSERT INTO `recommend` VALUES ('39', '3', '140');
INSERT INTO `recommend` VALUES ('42', '3', '151');
INSERT INTO `recommend` VALUES ('43', '3', '160');

-- ----------------------------
-- Table structure for type
-- ----------------------------
DROP TABLE IF EXISTS `type`;
CREATE TABLE `type` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of type
-- ----------------------------
INSERT INTO `type` VALUES ('1', '手机');
INSERT INTO `type` VALUES ('2', '数码');
INSERT INTO `type` VALUES ('3', '服装');
INSERT INTO `type` VALUES ('4', '家居厨具');
INSERT INTO `type` VALUES ('5', '美妆护肤');
INSERT INTO `type` VALUES ('8', '图书文娱');
INSERT INTO `type` VALUES ('11', '二手商品');

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `id` int NOT NULL AUTO_INCREMENT,
  `username` varchar(45) DEFAULT NULL,
  `email` varchar(45) DEFAULT NULL,
  `password` varchar(45) DEFAULT NULL,
  `name` varchar(45) DEFAULT NULL,
  `phone` varchar(45) DEFAULT NULL,
  `address` varchar(45) DEFAULT NULL,
  `isadmin` bit(1) DEFAULT NULL,
  `isvalidate` bit(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username_UNIQUE` (`username`),
  UNIQUE KEY `email_UNIQUE` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'admin', 'admin@vilicode.com', 'admin', '管理员', '1333333333', '中华人民共和国', '', '\0');
INSERT INTO `user` VALUES ('2', 'vili', 'vili@vilicode.com', 'vili', 'vili', '1344444444', '中华人民共和国', '\0', '\0');
INSERT INTO `user` VALUES ('42', '陈曦', '115968', 'chenxi666', 'cx', '9090980', '西南财经大学天府学院', '\0', '\0');
INSERT INTO `user` VALUES ('43', '余松涛', '2554068035@qq.com', '159753', 'yst', '19908115686', '西南财经大学天府学院', '\0', '\0');
