4 Star 0 Fork 0

水岸风堤/JinJu-Trading-Platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jinju.sql 4.33 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Navicat Premium Data Transfer
Source Server : 本机
Source Server Type : MySQL
Source Server Version : 80030 (8.0.30)
Source Host : localhost:3306
Source Schema : jinju
Target Server Type : MySQL
Target Server Version : 80030 (8.0.30)
File Encoding : 65001
Date: 21/05/2024 10:29:11
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for goods
-- ----------------------------
DROP TABLE IF EXISTS `goods`;
CREATE TABLE `goods` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '商品id',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称',
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '图像',
`category` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品类别',
`price` double NOT NULL COMMENT '价格',
`introduction` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品简介',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品状态:0 待审核 1 已通过 2 已下架',
`number` tinyint UNSIGNED NOT NULL COMMENT '库存',
`p_id` int UNSIGNED NOT NULL COMMENT '用户id',
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_time` datetime NOT NULL COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for orders
-- ----------------------------
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '订单id',
`total_price` double NOT NULL COMMENT '总价',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态:0 待支付 1 已支付 2 已取消',
`g_id` int UNSIGNED NOT NULL COMMENT '商品id',
`b_id` int UNSIGNED NOT NULL COMMENT '买家id',
`s_id` int UNSIGNED NOT NULL COMMENT '卖家id',
`number` tinyint UNSIGNED NOT NULL COMMENT '商品数量',
`create_time` datetime NOT NULL COMMENT '创建时间',
`finish_time` datetime NULL DEFAULT NULL COMMENT '完成时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '订单表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for people
-- ----------------------------
DROP TABLE IF EXISTS `people`;
CREATE TABLE `people` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '人员id',
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '密码',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '姓名',
`gender` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '性别:0 男 1 女',
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '头像',
`phone` char(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系电话',
`money` double NULL DEFAULT 0 COMMENT '钱包',
`role` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '角色:0 管理员 1 用户',
`create_time` datetime NOT NULL COMMENT '创建时间',
`update_time` datetime NOT NULL COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `username`(`username` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '人员表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for shoppingcart
-- ----------------------------
DROP TABLE IF EXISTS `shoppingcart`;
CREATE TABLE `shoppingcart` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '购物车id',
`g_id` int UNSIGNED NOT NULL COMMENT '商品id',
`b_id` int UNSIGNED NOT NULL COMMENT '买家id',
`s_id` int UNSIGNED NOT NULL COMMENT '卖家id',
`number` tinyint UNSIGNED NOT NULL COMMENT '数量',
`total_price` double NOT NULL COMMENT '总价',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '购物车表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/waterfront-windbreak/jin-ju-trading-platform.git
git@gitee.com:waterfront-windbreak/jin-ju-trading-platform.git
waterfront-windbreak
jin-ju-trading-platform
JinJu-Trading-Platform
master

搜索帮助