255 lines
20 KiB
SQL
255 lines
20 KiB
SQL
/*
|
||
Navicat Premium Data Transfer
|
||
|
||
Source Server : localhost MySQL 8.0
|
||
Source Server Type : MySQL
|
||
Source Server Version : 80012
|
||
Source Host : localhost:3306
|
||
Source Schema : epp
|
||
|
||
Target Server Type : MySQL
|
||
Target Server Version : 80012
|
||
File Encoding : 65001
|
||
|
||
Date: 24/11/2022 01:25:43
|
||
*/
|
||
|
||
SET NAMES utf8mb4;
|
||
SET FOREIGN_KEY_CHECKS = 0;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for apply
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `apply`;
|
||
CREATE TABLE `apply` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`stu_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
|
||
`issue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请事由',
|
||
`transport` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出行方式',
|
||
`place` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '目的地',
|
||
`start_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
|
||
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
|
||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:通过,2:驳回)',
|
||
`reason` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '驳回原因',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of apply
|
||
-- ----------------------------
|
||
INSERT INTO `apply` VALUES (1, 1, '11', '飞机', '33', '2022-02-15 11:20:00', '2022-02-15 13:20:00', 2, '格式错误');
|
||
INSERT INTO `apply` VALUES (2, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 1, '');
|
||
INSERT INTO `apply` VALUES (3, 2, '333', '大巴', '333', '2022-02-15 11:51:00', '2022-02-15 13:51:00', 2, '格式错误');
|
||
INSERT INTO `apply` VALUES (4, 2, '1', '动车', '2', '2022-03-12 13:45:00', '2022-03-12 15:45:00', 1, '');
|
||
INSERT INTO `apply` VALUES (5, 2, '11', '飞机', '22', '2022-03-12 20:29:00', '2022-03-12 22:29:00', 1, '');
|
||
INSERT INTO `apply` VALUES (6, 1, '123', '飞机', '123', '2022-03-19 13:37:00', '2022-03-19 15:37:00', 1, '');
|
||
INSERT INTO `apply` VALUES (9, 10, '1', '飞机', '1', '2022-06-15 10:41:00', '2022-06-15 12:41:00', 1, '');
|
||
INSERT INTO `apply` VALUES (10, 12, '1', '飞机', '1', '2022-06-15 10:53:00', '2022-06-15 12:53:00', 2, '格式错误');
|
||
INSERT INTO `apply` VALUES (11, 2, '1', '飞机', '1', '2022-10-23 16:17:00', '2022-10-23 18:17:00', 1, '');
|
||
INSERT INTO `apply` VALUES (12, 13, '1', '飞机', '1', '2022-10-26 19:25:00', '2022-10-26 21:25:00', 1, '');
|
||
|
||
-- ----------------------------
|
||
-- Table structure for count
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `count`;
|
||
CREATE TABLE `count` (
|
||
`date` date NOT NULL COMMENT '日期',
|
||
`time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '时间',
|
||
`in_num` int(11) NULL DEFAULT NULL COMMENT '入校人数',
|
||
`out_num` int(11) NULL DEFAULT NULL COMMENT '出校人数',
|
||
PRIMARY KEY (`date`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of count
|
||
-- ----------------------------
|
||
|
||
-- ----------------------------
|
||
-- Table structure for feedback
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `feedback`;
|
||
CREATE TABLE `feedback` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '反馈标题',
|
||
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '反馈内容',
|
||
`time` datetime NULL DEFAULT NULL COMMENT '反馈时间',
|
||
`user_id` int(11) NULL DEFAULT NULL COMMENT '反馈用户id',
|
||
`reply` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '回复',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of feedback
|
||
-- ----------------------------
|
||
INSERT INTO `feedback` VALUES (1, '111', '222', '2022-02-14 10:18:29', 1, '22');
|
||
INSERT INTO `feedback` VALUES (2, '111', '222', '2022-02-14 10:20:05', 1, '33');
|
||
INSERT INTO `feedback` VALUES (3, '22', '33', '2022-02-14 10:20:29', 1, 'no');
|
||
INSERT INTO `feedback` VALUES (4, '``', '11', '2022-02-14 10:22:12', 1, '111');
|
||
INSERT INTO `feedback` VALUES (5, '123', '123456', '2022-03-28 19:34:04', 2, NULL);
|
||
|
||
-- ----------------------------
|
||
-- Table structure for notice
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `notice`;
|
||
CREATE TABLE `notice` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题',
|
||
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
|
||
`time` date NULL DEFAULT NULL COMMENT '时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of notice
|
||
-- ----------------------------
|
||
INSERT INTO `notice` VALUES (1, '请各位学生戴好口罩', NULL, '2022-03-15');
|
||
INSERT INTO `notice` VALUES (2, '请各位学生不要随意出入校门', NULL, '2022-03-15');
|
||
INSERT INTO `notice` VALUES (7, '11', '22', '2022-03-22');
|
||
INSERT INTO `notice` VALUES (8, '22', '22', '2022-04-14');
|
||
INSERT INTO `notice` VALUES (9, '33', '33', '2022-04-14');
|
||
|
||
-- ----------------------------
|
||
-- Table structure for report
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `report`;
|
||
CREATE TABLE `report` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
|
||
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
|
||
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
|
||
`time` datetime NULL DEFAULT NULL COMMENT '填报时间',
|
||
`normal` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '体温是否正常',
|
||
`yes_noon_temp` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昨日午检体温',
|
||
`yes_night_temp` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昨日晚检体温',
|
||
`today_morning_temp` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '今日晨检体温',
|
||
`isolation` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '隔离情况',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of report
|
||
-- ----------------------------
|
||
INSERT INTO `report` VALUES (1, 2, '廖鸿志', '福建省福州市晋安区福新中路109-19号', '2022-02-15 15:17:16', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (2, 2, '廖鸿志', '福建省福州市晋安区福新中路109-19号', '2022-02-15 15:57:33', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (3, 1, '管理员', '河南省郑州市中原区桐柏北路6号', '2022-03-07 20:39:28', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (4, 1, '管理员', '河南省郑州市中原区桐柏北路6号', '2022-03-07 20:39:28', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (5, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 14:46:02', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (6, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 15:09:35', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (7, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 15:12:27', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (8, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 15:13:04', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (9, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 15:14:23', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (10, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-09 15:15:23', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (11, 2, '廖鸿志', '福建省福州市鼓楼区乌山路96号', '2022-03-11 11:11:49', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (12, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-18 09:55:44', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (13, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-18 09:55:35', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (14, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-18 09:55:35', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (15, 2, '廖鸿志', '福建省福州市晋安区福新中路109-19号', '2022-03-18 09:59:39', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (16, 1, '管理员', '河南省安阳市文峰区文明大道东段72号', '2022-03-19 13:39:05', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (17, 1, '管理员', '河南省安阳市文峰区文明大道东段72号', '2022-03-19 13:39:05', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (18, 1, '管理员', '河南省安阳市文峰区文明大道72号', '2022-03-19 13:40:19', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (19, 1, '管理员', '河南省安阳市文峰区文明大道72号', '2022-03-19 13:40:19', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (20, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-03-28 19:06:51', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (21, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-03-28 19:06:51', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (22, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-03-28 19:06:51', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (23, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 15:52:50', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (24, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 15:55:32', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (25, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 15:57:57', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (26, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 16:04:07', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (27, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 16:04:07', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (28, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-03-30 16:04:53', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (29, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-04-05 10:53:29', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (30, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-04-05 10:54:12', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (31, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-04-05 10:58:59', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (32, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-04-05 11:01:08', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (33, 1, '管理员', '福建省福州市鼓楼区乌山路96号', '2022-04-05 11:01:51', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (34, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-04-14 18:28:08', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (35, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-04-14 18:32:43', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (36, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-04-16 00:06:00', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (37, 1, '管理员', '福建省福州市晋安区福新中路109-19号', '2022-04-16 00:13:06', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (38, 11, '老师', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:35:13', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (39, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:45:05', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (40, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:45:24', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (41, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:45:24', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (42, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:49:32', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (43, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:51:51', '发热', '36.2', '36.4', '36.2', '无需隔离');
|
||
INSERT INTO `report` VALUES (44, 12, '刘鸿宇', '福建省福州市晋安区福新中路109-19号', '2022-06-15 10:53:00', '正常', '36.2', '36.4', '36.2', '无需隔离');
|
||
|
||
-- ----------------------------
|
||
-- Table structure for user
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `user`;
|
||
CREATE TABLE `user` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`username` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
|
||
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
|
||
`realname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
|
||
`id_number` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证号',
|
||
`phone_number` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
|
||
`role` int(11) NOT NULL COMMENT '角色 (0-超级管理员 1-工作人员 2-社区居民_房主 3-社区居民_家庭成员 4-社区居民_租客 5-访客)',
|
||
`building_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门栋号+单元号',
|
||
`doorplate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '门牌号',
|
||
`permission` int(11) NOT NULL DEFAULT 0 COMMENT '进出权限 (0-无 1-继承(普通居民) 2-永久 3-限时)',
|
||
`permission_time` datetime NULL DEFAULT NULL COMMENT '进出权限失效时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of user
|
||
-- ----------------------------
|
||
INSERT INTO `user` VALUES (1, 'root', '63a9f0ea7bb98050796b649e85481845', '管理员 密码root', '420111111111111111', NULL, 1, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (2, 'lhz', 'lhz', '廖鸿志', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (3, '21180000', '21180000', '李', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (4, '211', '211', '11', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (5, '2111', '2111', '111', NULL, NULL, 1, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (6, '222', '222', '33', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (7, '33', '33', '44', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (8, 'test', '1', 'test', NULL, NULL, 3, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (9, '123456', '123456', '123456', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (10, '211806336', '211806336', '211806336', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (11, '001', '001', '老师', NULL, NULL, 1, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (12, '002', '002', '刘鸿宇', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (13, 'z', 'zz', 'z', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (14, '111', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (15, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (16, '222', '222', '222', NULL, NULL, 222, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (17, '111111111111', '111111111111', '111111111111', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (18, '12', '12', '12', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (19, '210602212109', '210602212109', '曾子华', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (20, 'undefined', 'undefined', '信息2121', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
INSERT INTO `user` VALUES (21, '2', '2', '曾', NULL, NULL, 2, NULL, NULL, 0, NULL);
|
||
|
||
-- ----------------------------
|
||
-- Table structure for visitor
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `visitor`;
|
||
CREATE TABLE `visitor` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`time` datetime NULL DEFAULT NULL COMMENT '预约时间',
|
||
`phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约用户id',
|
||
`issue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预约事由',
|
||
`meet_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会见人姓名',
|
||
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
|
||
`state` int(11) NULL DEFAULT 0 COMMENT '状态(0:审批中,1:成功,2:驳回)',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of visitor
|
||
-- ----------------------------
|
||
INSERT INTO `visitor` VALUES (1, '2022-03-09 09:46:50', '136', NULL, NULL, NULL, 1);
|
||
INSERT INTO `visitor` VALUES (2, '2022-03-09 00:00:00', '1', '2', '王老师', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (3, '2022-03-13 00:00:00', '123', '123', '123', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (4, '2022-03-17 00:00:00', '183', '11', '1111', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (5, '2022-03-20 07:00:00', '15555150781', '测试', '王德发', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (6, '2022-03-20 07:00:00', '15555150782', '测试', '王德发', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (7, '2022-03-20 00:00:00', '12345', '返校', '自己', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (8, '2022-03-21 00:00:00', '1', '1', '1', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (9, '2022-03-22 00:00:00', '11', '11', '1', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (10, '2022-03-22 00:00:00', '183', '1', '123', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (11, '2022-04-20 00:00:00', '19851691582', '看吧', '哈哈', NULL, 0);
|
||
INSERT INTO `visitor` VALUES (12, '2022-04-26 00:00:00', '18835381168', 'jin', 'zhang ', NULL, 0);
|
||
INSERT INTO `visitor` VALUES (13, '2022-06-15 00:00:00', '18250314786', '1', '1', NULL, 1);
|
||
INSERT INTO `visitor` VALUES (14, '2022-10-08 00:00:00', '151000', '入校', '王龙', NULL, 0);
|
||
|
||
SET FOREIGN_KEY_CHECKS = 1;
|