myshop-intelij/shop.sql
2023-11-14 15:03:36 +08:00

207 lines
11 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50528
Source Host : localhost:3306
Source Database : chapter16
Target Server Type : MYSQL
Target Server Version : 50528
File Encoding : 65001
Date: 2019-09-03 09:17:00
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for t_cart
-- ----------------------------
DROP TABLE IF EXISTS `t_cart`;
CREATE TABLE `t_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_cart
-- ----------------------------
INSERT INTO `t_cart` VALUES ('1', '4', '0');
INSERT INTO `t_cart` VALUES ('2', '5', '0');
INSERT INTO `t_cart` VALUES ('3', '6', '0');
INSERT INTO `t_cart` VALUES ('4', '7', '0');
INSERT INTO `t_cart` VALUES ('5', '1', '0');
INSERT INTO `t_cart` VALUES ('6', '9', '0');
INSERT INTO `t_cart` VALUES ('7', '10', '0');
INSERT INTO `t_cart` VALUES ('8', '13', '0');
INSERT INTO `t_cart` VALUES ('9', '14', '0');
-- ----------------------------
-- Table structure for t_cartdetail
-- ----------------------------
DROP TABLE IF EXISTS `t_cartdetail`;
CREATE TABLE `t_cartdetail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) DEFAULT NULL,
`gid` int(11) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_cartdetail
-- ----------------------------
-- ----------------------------
-- Table structure for t_goods
-- ----------------------------
DROP TABLE IF EXISTS `t_goods`;
CREATE TABLE `t_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`price` bigint(20) DEFAULT NULL,
`pubdate` date DEFAULT NULL,
`typeName` varchar(20) DEFAULT NULL,
`intro` varchar(200) DEFAULT NULL,
`picture` varchar(150) DEFAULT NULL,
`flag` int(11) DEFAULT NULL COMMENT '1上架 2下架',
`star` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_goods
-- ----------------------------
INSERT INTO `t_goods` VALUES ('1', '可口可乐', '32', '2018-11-25', '酒水饮料', '巴厘岛原装进口 百事可乐(Pepsi) blue 蓝色可乐 网红可乐汽水饮料 450ml*4瓶装', '201811/7b001eee-38df-4c66-9a0f-350879007402_js1.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('2', '易拉罐可口可乐', '88', '2018-11-25', '酒水饮料', '日本原装进口 可口可乐(Coca-Cola)碳酸饮料 500ml*6罐味道谁喝谁知道', '201811/f65d85f4-a622-4f6b-bbdf-2e354d7b0737_js2.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('3', '干红', '480', '2018-11-25', '酒水饮料', '自营张裕CHANGYU红酒 张裕干红葡萄酒750ml*6瓶彩龙版', '201811/fa61ef77-4adc-4895-962b-fcb084e3e809_js3.jpg', '1', '4');
INSERT INTO `t_goods` VALUES ('4', '进口红酒', '999', '2018-11-25', '酒水饮料', '法国进口红酒 拉菲LAFITE传奇波尔多干红葡萄酒 双支礼盒装带酒具 750ml*2瓶', '201811/cb233c79-2f18-4f97-afad-0d2079098345_js4.jpg', '1', '3');
INSERT INTO `t_goods` VALUES ('5', '草莓饼干', '8', '2018-11-25', '饼干糕点', '土斯Totaste 葡萄味夹层饼干(含葡萄果粒) 休闲零食蛋糕甜点心 实惠分享装360g', '201811/afdd4cd4-9782-46a5-96ed-0ba3c4036379_bg1.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('6', '蔬菜棒', '12', '2018-11-25', '饼干糕点', '土斯Totaste 混合蔬菜味棒形饼干 酥脆可口 独立包装 休闲零食蛋糕甜点心小吃 128g', '201811/8bdbdb3f-4cb6-4af8-9c6f-183411537726_bg2.jpg', '1', '4');
INSERT INTO `t_goods` VALUES ('7', '曲奇', '58', '2018-11-25', '饼干糕点', '丹麦进口 皇冠danisa丹麦曲奇精选礼盒装908g(新老包装随机发货)', '201811/db2a101d-600a-44c5-8d0f-0a3b173f81aa_bg3.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('8', '夹心饼干', '16', '2018-11-25', '饼干糕点', '马来西亚原装进口 茱蒂丝Julie\'s雷蒙德巧克力榛果夹心饼干180g×2', '201811/3b047c04-6b23-491d-bf9c-5405cf36c308_bg4.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('9', '', '18', '2018-11-25', '', ' Nabati Richeese 400g/ ', '201811/287f1938-f039-4d24-9942-3c8a456d757b_ls1.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('10', '', '8', '2018-11-25', '', ' 150g ', '201811/7570a0dc-eacb-4b61-9085-966ac322172f_ls2.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('11', '', '10', '2018-11-25', '', ' 54g/', '201811/62c5370b-2f32-450f-ba4c-401a004d5270_ls3.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('12', '', '5', '2018-11-25', '', '120g/', '201811/4e807511-5515-4ec8-9e20-41e8f49ece66_ls4.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('13', '', '118', '2018-11-25', '', 'TsingTao 10 500ml*24', '201811/555da004-a18c-4fa9-9f23-094551928831_js5.jpg', '1', '5');
INSERT INTO `t_goods` VALUES ('14', '', '19', '2018-11-25', '', ' 1000g整箱装零食大礼包口袋面包孕妇零食早餐食品生日蛋糕小糕点点心礼盒装', '201811/12a3f75c-8ddd-41d8-862f-93f342e5e41e_bg5.png', '1', '5');
INSERT INTO `t_goods` VALUES ('15', '', '13', '2018-11-25', '', '199120 100g坚果炒货零食每日坚果 1', '201811/d468a868-a7b8-4ad6-bde1-124e23c66437_ls5.jpg', '1', '5');
-- ----------------------------
-- Table structure for t_goodstype
-- ----------------------------
DROP TABLE IF EXISTS `t_goodstype`;
CREATE TABLE `t_goodstype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) DEFAULT NULL,
`level` int(11) DEFAULT NULL COMMENT '12',
`parentName` varchar(20) DEFAULT NULL,
`flag` int(11) DEFAULT NULL COMMENT '1 2',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_goodstype
-- ----------------------------
INSERT INTO `t_goodstype` VALUES ('1', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('2', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('3', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('4', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('5', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('6', '', '1', null, '1');
INSERT INTO `t_goodstype` VALUES ('7', '', '1', null, '1');
-- ----------------------------
-- Table structure for t_order
-- ----------------------------
DROP TABLE IF EXISTS `t_order`;
CREATE TABLE `t_order` (
`id` varchar(100) NOT NULL,
`uaid` int(11) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`createtime` datetime DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
`flag` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_order
-- ----------------------------
INSERT INTO `t_order` VALUES ('20190903091114465585f704e-e430-4d26-80ba-144e958cc7b0', '12', '13', '2019-09-03 09:11:14', '352', '1');
INSERT INTO `t_order` VALUES ('201909030912505485dde283b-f42d-43ec-a7bb-b6b949465d4f', '14', '13', '2019-09-03 09:12:50', '118', '2');
INSERT INTO `t_order` VALUES ('201909030913066619e056ba1-ed64-4688-8da3-d7c5c1a0a309', '12', '13', '2019-09-03 09:13:06', '13', '3');
INSERT INTO `t_order` VALUES ('2019090309131945984429b26-dfe6-423f-a39a-835272ea9820', '12', '13', '2019-09-03 09:13:19', '64', '4');
-- ----------------------------
-- Table structure for t_orderdetail
-- ----------------------------
DROP TABLE IF EXISTS `t_orderdetail`;
CREATE TABLE `t_orderdetail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gid` int(11) DEFAULT NULL,
`oid` varchar(100) DEFAULT NULL,
`money` bigint(20) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_orderdetail
-- ----------------------------
INSERT INTO `t_orderdetail` VALUES ('64', '2', '20190903091114465585f704e-e430-4d26-80ba-144e958cc7b0', '352', '4');
INSERT INTO `t_orderdetail` VALUES ('65', '7', '201909030912505485dde283b-f42d-43ec-a7bb-b6b949465d4f', '58', '1');
INSERT INTO `t_orderdetail` VALUES ('66', '6', '201909030912505485dde283b-f42d-43ec-a7bb-b6b949465d4f', '24', '2');
INSERT INTO `t_orderdetail` VALUES ('67', '9', '201909030912505485dde283b-f42d-43ec-a7bb-b6b949465d4f', '36', '2');
INSERT INTO `t_orderdetail` VALUES ('68', '15', '201909030913066619e056ba1-ed64-4688-8da3-d7c5c1a0a309', '13', '1');
INSERT INTO `t_orderdetail` VALUES ('69', '1', '2019090309131945984429b26-dfe6-423f-a39a-835272ea9820', '64', '2');
-- ----------------------------
-- Table structure for t_user
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role` int(11) DEFAULT NULL COMMENT ' 0 1',
`username` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`email` varchar(30) DEFAULT NULL,
`gender` varchar(2) DEFAULT NULL,
`createtime` datetime DEFAULT NULL,
`flag` int(11) DEFAULT NULL COMMENT ' 1 2 3 4',
`activatecode` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('1', '1', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin', '', '2018-11-25 17:22:22', '2', null);
INSERT INTO `t_user` VALUES ('13', '1', '', 'e10adc3949ba59abbe56e057f20f883e', '123456789@qq.com', '', '2019-09-02 15:51:55', '2', '20190902155155296351');
-- ----------------------------
-- Table structure for t_useraddress
-- ----------------------------
DROP TABLE IF EXISTS `t_useraddress`;
CREATE TABLE `t_useraddress` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`detail` varchar(150) DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`flag` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_useraddress
-- ----------------------------
INSERT INTO `t_useraddress` VALUES ('9', '', '66666666666', '西', '9', '1');
INSERT INTO `t_useraddress` VALUES ('12', '', '88888888888', '西284', '13', '3');
INSERT INTO `t_useraddress` VALUES ('14', 'Java', '00000000000', '', '13', '1');