/*
 Navicat Premium Data Transfer

 Source Server         : local 3306
 Source Server Type    : MySQL
 Source Server Version : 80026
 Source Host           : localhost:3306
 Source Schema         : iorecordsys

 Target Server Type    : MySQL
 Target Server Version : 80026
 File Encoding         : 65001

 Date: 12/10/2022 22:31:47
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for iorecords
-- ----------------------------
DROP TABLE IF EXISTS `iorecords`;
CREATE TABLE `iorecords`  (
  `ID` int UNSIGNED NOT NULL AUTO_INCREMENT,
  `TeacherID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `IOType` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '0',
  `OuterResidence` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `InnerResidence` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `Reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `CommitTime` datetime(0) NOT NULL,
  `DeptAuditorID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  `DeptAuditTime` datetime(0) NULL DEFAULT NULL,
  `SchoolAuditorID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  `SchoolAuditTime` datetime(0) NULL DEFAULT NULL,
  `ValidatorID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
  `ValidateTime` datetime(0) NULL DEFAULT NULL,
  `Status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'SAVE',
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of iorecords
-- ----------------------------
INSERT INTO `iorecords` VALUES (1, '1001', '0', '唐山市路北区', '梅8101', '授课', '2022-10-04 09:39:00', NULL, NULL, NULL, NULL, NULL, NULL, 'SUBMIT');
INSERT INTO `iorecords` VALUES (2, '1001', '1', '唐山市路北区', '梅8101', '授课结束', '2022-10-04 09:39:00', NULL, NULL, NULL, NULL, NULL, NULL, 'SUBMIT');
INSERT INTO `iorecords` VALUES (3, '1001', '1', '唐山市路北区', '梅8101', '授课结束', '2022-07-30 09:39:00', '1003', '2022-07-30 10:39:00', '1004', '2022-07-30 11:39:00', NULL, NULL, 'SCHOOL_PASS');
INSERT INTO `iorecords` VALUES (4, '1001', '1', '唐山市路北区', '梅8101', '授课结束', '2022-07-30 09:39:00', '1003', '2022-07-30 10:39:00', '1004', '2022-07-30 11:39:00', NULL, NULL, 'SCHOOL_PASS');
INSERT INTO `iorecords` VALUES (5, '1001', '1', '唐山市路北区', '梅8101', '授课结束', '2022-07-30 09:39:00', '1003', '2022-07-30 10:39:00', NULL, NULL, NULL, NULL, 'DEPT_PASS');
INSERT INTO `iorecords` VALUES (6, '1001', '1', '唐山市路北区', '梅8101', '授课结束', '2022-07-30 09:39:00', '1003', '2022-07-30 10:39:00', NULL, NULL, NULL, NULL, 'DENY');

SET FOREIGN_KEY_CHECKS = 1;
