1 Star 54 Fork 7

yuchen/二手交易网站(ssm+mysql)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
school_tao.sql 6.11 KB
一键复制 编辑 原始数据 按行查看 历史
yuchen 提交于 2023-10-25 16:50 . 更新sql
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50720
Source Host : localhost:3306
Source Schema : school_tao
Target Server Type : MySQL
Target Server Version : 50720
File Encoding : 65001
Date: 25/10/2023 16:49:13
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`password` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES (1, 'admin', 'admin');
-- ----------------------------
-- Table structure for adress
-- ----------------------------
DROP TABLE IF EXISTS `adress`;
CREATE TABLE `adress` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`adress` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of adress
-- ----------------------------
-- ----------------------------
-- Table structure for classification
-- ----------------------------
DROP TABLE IF EXISTS `classification`;
CREATE TABLE `classification` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '分类名',
`kind_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '分类id',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `kind_id`(`kind_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of classification
-- ----------------------------
INSERT INTO `classification` VALUES (1, '鞋服', '1');
INSERT INTO `classification` VALUES (2, '数码电子', '2');
INSERT INTO `classification` VALUES (3, '日用品', '3');
INSERT INTO `classification` VALUES (4, '文具书籍', '4');
INSERT INTO `classification` VALUES (5, '小吃零食', '5');
INSERT INTO `classification` VALUES (6, '家具沙发座椅', '6');
INSERT INTO `classification` VALUES (7, '彩妆护理', '7');
INSERT INTO `classification` VALUES (8, '其他', '8');
-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`img` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图片',
`price` float NOT NULL COMMENT '价格',
`kind` int(11) NULL DEFAULT NULL COMMENT '商品分类',
`isselled` int(11) NULL DEFAULT 0 COMMENT '是否被卖',
`introduce` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品介绍',
`user_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖家id',
`status` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '审核码',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of goods
-- ----------------------------
-- ----------------------------
-- Table structure for orders
-- ----------------------------
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` bigint(100) NOT NULL,
`sell_id` varchar(111) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`buyer_id` varchar(111) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`goods_id` int(111) NOT NULL,
`price` float NOT NULL,
`status` int(111) NOT NULL,
`adress` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of orders
-- ----------------------------
-- ----------------------------
-- Table structure for shopping_car
-- ----------------------------
DROP TABLE IF EXISTS `shopping_car`;
CREATE TABLE `shopping_car` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`goods_img` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`goods_name` varchar(3000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`goods_price` float NULL DEFAULT NULL,
`goods_isselled` int(11) NULL DEFAULT 0,
`userid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`goods_id` int(111) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of shopping_car
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`username` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '昵称',
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
`phonenumber` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系方式',
`status` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态码',
PRIMARY KEY (`username`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('admin', '管理员', ' $2a$10$M4gsOl8erG.NPFjWe9BCh.DyZv1U18s2vOuKhbhnGaHnfuoI3jCKO', '18326588175', '1');
SET FOREIGN_KEY_CHECKS = 1;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yuchen980310/yuchen-respository.git
git@gitee.com:yuchen980310/yuchen-respository.git
yuchen980310
yuchen-respository
二手交易网站(ssm+mysql)
master

搜索帮助