代码拉取完成,页面将自动刷新
/*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 80017
Source Host : localhost:3306
Source Schema : pinche_02
Target Server Type : MySQL
Target Server Version : 80017
File Encoding : 65001
Date: 20/04/2023 08:52:35
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for address
-- ----------------------------
DROP TABLE IF EXISTS `address`;
CREATE TABLE `address` (
`id` int(128) UNSIGNED NOT NULL AUTO_INCREMENT,
`gmt_create` datetime(0) NULL DEFAULT NULL,
`gmt_modified` datetime(0) NULL DEFAULT NULL,
`name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`address` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`latitude` double(10, 6) NULL DEFAULT NULL,
`longitude` double(10, 6) NULL DEFAULT NULL,
`type` tinyint(2) NULL DEFAULT NULL COMMENT '0起点1终点',
`hot_point` int(128) NULL DEFAULT 1 COMMENT '使用次数',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uni`(`latitude`, `longitude`, `type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '管理员用户名',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '管理员密码',
`createTime` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '管理员性别',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '邮箱',
`introduce` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '管理员自我介绍',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '管理员姓名',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for admin_face
-- ----------------------------
DROP TABLE IF EXISTS `admin_face`;
CREATE TABLE `admin_face` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`admin_id` int(11) NULL DEFAULT NULL COMMENT '管理员id',
`face_id` varchar(31) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '人脸唯一Id',
`name` varchar(63) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '名字',
`age` int(3) NULL DEFAULT NULL COMMENT '年纪',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '邮箱地址',
`gender` smallint(1) NULL DEFAULT NULL COMMENT '性别,1=男,2=女',
`phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '电话号码',
`face_feature` blob NULL COMMENT '人脸特征',
`create_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`update_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
`fpath` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '照片路径',
PRIMARY KEY (`id`) USING BTREE,
INDEX `GROUP_ID`(`admin_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for admin_logintime
-- ----------------------------
DROP TABLE IF EXISTS `admin_logintime`;
CREATE TABLE `admin_logintime` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`admin_id` int(11) NULL DEFAULT NULL COMMENT '管理员id',
`admin_login_time` datetime(0) NULL DEFAULT NULL COMMENT '管理员登录时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 146 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for feedback_message
-- ----------------------------
DROP TABLE IF EXISTS `feedback_message`;
CREATE TABLE `feedback_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '反馈信息',
`score` int(3) NULL DEFAULT NULL COMMENT '系统分数',
`userId` int(11) NULL DEFAULT NULL COMMENT '用户id',
`sendTime` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '发送时间',
`state` int(1) NULL DEFAULT 0 COMMENT '0表示未读,1表示已读',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for pin_order
-- ----------------------------
DROP TABLE IF EXISTS `pin_order`;
CREATE TABLE `pin_order` (
`id` int(128) UNSIGNED NOT NULL AUTO_INCREMENT,
`gmt_create` datetime(0) NULL DEFAULT NULL,
`gmt_modified` datetime(0) NULL DEFAULT NULL,
`creator` int(128) NULL DEFAULT NULL,
`leader` int(128) NULL DEFAULT NULL,
`start_address_id` int(128) NOT NULL,
`end_address_id` int(128) NOT NULL,
`target_time` datetime(0) NOT NULL,
`target_num` int(32) NOT NULL,
`current_num` int(32) NOT NULL DEFAULT 1,
`deleted` tinyint(2) NULL DEFAULT 0,
`state` tinyint(1) UNSIGNED ZEROFILL NOT NULL,
`travel_start_num` tinyint(1) UNSIGNED ZEROFILL NOT NULL,
`travel_end_num` tinyint(1) UNSIGNED ZEROFILL NOT NULL,
`singlePrice` double(4, 2) UNSIGNED ZEROFILL NOT NULL,
`driverId` int(11) UNSIGNED ZEROFILL NULL DEFAULT NULL COMMENT '接单司机',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for room_message
-- ----------------------------
DROP TABLE IF EXISTS `room_message`;
CREATE TABLE `room_message` (
`id` int(128) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` int(128) NULL DEFAULT NULL,
`time` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`order_id` int(128) NULL DEFAULT NULL COMMENT 'orderid=roomid',
PRIMARY KEY (`id`) USING BTREE,
INDEX `orderid`(`order_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for school
-- ----------------------------
DROP TABLE IF EXISTS `school`;
CREATE TABLE `school` (
`id` int(255) NOT NULL AUTO_INCREMENT COMMENT '学校id',
`school_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学校名称',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `idx_schoolname`(`school_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for school_student
-- ----------------------------
DROP TABLE IF EXISTS `school_student`;
CREATE TABLE `school_student` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`school_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学校名',
`student_num` int(255) NOT NULL COMMENT '学校学号',
`student_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学生姓名',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
`id` int(255) NOT NULL AUTO_INCREMENT COMMENT '学生id',
`student_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学号',
`school_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学校名称',
`student_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学生姓名',
`sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学生性别',
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学生手机号',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '学生邮箱',
`user_id` int(255) NOT NULL COMMENT '用户id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(128) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
`gmt_create` datetime(0) NULL DEFAULT NULL,
`gmt_modified` datetime(0) NULL DEFAULT NULL,
`last_login_time` datetime(0) NULL DEFAULT NULL,
`openid` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`nick_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '用户名称',
`gender` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '0未知1男2女',
`avatar_url` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
`country` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`province` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`city` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`language` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`school` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`phone` int(16) NULL DEFAULT NULL,
`deleted` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0存在1删除',
`role` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '0表示学生1表示司机',
`hasFillInfo` int(1) UNSIGNED NULL DEFAULT 0 COMMENT '0表示未完善,1表示完善',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `openid`(`openid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for user_order_rel
-- ----------------------------
DROP TABLE IF EXISTS `user_order_rel`;
CREATE TABLE `user_order_rel` (
`id` int(128) UNSIGNED NOT NULL AUTO_INCREMENT,
`gmt_create` datetime(0) NULL DEFAULT NULL,
`gmt_modified` datetime(0) NULL DEFAULT NULL,
`order_id` int(128) NULL DEFAULT NULL,
`user_id` int(128) NULL DEFAULT NULL,
`leader` tinyint(4) NOT NULL COMMENT '0队员1队长',
`deleted` tinyint(2) NULL DEFAULT 0 COMMENT '0存在1不存在',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for vehicle
-- ----------------------------
DROP TABLE IF EXISTS `vehicle`;
CREATE TABLE `vehicle` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '车辆表id',
`driverName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '司机姓名',
`driverPhone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '司机手机号',
`carNum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT '车牌号',
`score` int(255) NOT NULL DEFAULT 100 COMMENT '车辆评分,默认100分,低于50分加入黑名单',
`carBrand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '车辆品牌',
`userId` int(255) NOT NULL COMMENT '用户id',
`idCard` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '身份证',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '邮箱',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。