From ee8df332992e7fa627a0dbaff4a536899a128d67 Mon Sep 17 00:00:00 2001 From: yuan Date: Wed, 17 Jan 2024 00:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1sql=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/achobeta/sql/interview_schedule.sql | 37 ++++++++++++++ .../java/com/achobeta/sql/stu_attachment.sql | 36 +++++++++++++ src/main/java/com/achobeta/sql/student.sql | 50 +++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 src/main/java/com/achobeta/sql/interview_schedule.sql create mode 100644 src/main/java/com/achobeta/sql/stu_attachment.sql create mode 100644 src/main/java/com/achobeta/sql/student.sql diff --git a/src/main/java/com/achobeta/sql/interview_schedule.sql b/src/main/java/com/achobeta/sql/interview_schedule.sql new file mode 100644 index 00000000..4efdef47 --- /dev/null +++ b/src/main/java/com/achobeta/sql/interview_schedule.sql @@ -0,0 +1,37 @@ +/* + Navicat Premium Data Transfer + + Source Server : 本机 + Source Server Type : MySQL + Source Server Version : 80026 + Source Host : localhost:3306 + Source Schema : achobeta_recruitment + + Target Server Type : MySQL + Target Server Version : 80026 + File Encoding : 65001 + + Date: 17/01/2024 00:49:44 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for interview_schedule +-- ---------------------------- +DROP TABLE IF EXISTS `interview_schedule`; +CREATE TABLE `interview_schedule` ( + `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, + `stu_id` bigint UNSIGNED NOT NULL COMMENT '用户表id', + `date` date NOT NULL COMMENT '预约日期', + `start_time` time NOT NULL COMMENT '预约开始时间', + `end_time` time NOT NULL COMMENT '预约结束时间', + `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `version` int NOT NULL DEFAULT 0 COMMENT '乐观锁', + `is_deleted` tinyint NOT NULL DEFAULT 0 COMMENT '伪删除标记', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '面试时间预约表' ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/src/main/java/com/achobeta/sql/stu_attachment.sql b/src/main/java/com/achobeta/sql/stu_attachment.sql new file mode 100644 index 00000000..09fa22ca --- /dev/null +++ b/src/main/java/com/achobeta/sql/stu_attachment.sql @@ -0,0 +1,36 @@ +/* + Navicat Premium Data Transfer + + Source Server : 本机 + Source Server Type : MySQL + Source Server Version : 80026 + Source Host : localhost:3306 + Source Schema : achobeta_recruitment + + Target Server Type : MySQL + Target Server Version : 80026 + File Encoding : 65001 + + Date: 17/01/2024 00:49:52 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for stu_attachment +-- ---------------------------- +DROP TABLE IF EXISTS `stu_attachment`; +CREATE TABLE `stu_attachment` ( + `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', + `stu_id` bigint UNSIGNED NOT NULL COMMENT '学生表主键id', + `filename` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '附件名', + `attachment` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '附件路径', + `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `version` int NOT NULL DEFAULT 0 COMMENT '乐观锁', + `is_deleted` tinyint NOT NULL DEFAULT 0 COMMENT '伪删除标记', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '学生附件表' ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/src/main/java/com/achobeta/sql/student.sql b/src/main/java/com/achobeta/sql/student.sql new file mode 100644 index 00000000..fe6bf011 --- /dev/null +++ b/src/main/java/com/achobeta/sql/student.sql @@ -0,0 +1,50 @@ +/* + Navicat Premium Data Transfer + + Source Server : 本机 + Source Server Type : MySQL + Source Server Version : 80026 + Source Host : localhost:3306 + Source Schema : achobeta_recruitment + + Target Server Type : MySQL + Target Server Version : 80026 + File Encoding : 65001 + + Date: 17/01/2024 00:49:59 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for student +-- ---------------------------- +DROP TABLE IF EXISTS `student`; +CREATE TABLE `student` ( + `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', + `questionnaire_id` int NOT NULL DEFAULT 1 COMMENT '问卷id', + `student_id` varchar(13) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '学号', + `name` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '姓名', + `gender` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别', + `major` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '专业', + `class_number` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '班号', + `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '邮箱', + `phone_number` varchar(11) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '手机号码', + `reason` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '加入 AchoBeta 的理由', + `introduce` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '个人介绍(自我认知)', + `experience` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '个人经历 (项目经历、 职业规划等)', + `awards` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '获奖经历', + `image` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '照片', + `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '备注', + `status_id` int NOT NULL DEFAULT 1 COMMENT '简历状态', + `flag` int NOT NULL DEFAULT 0 COMMENT '提交次数', + `ab_version` int NOT NULL DEFAULT 1 COMMENT 'ab版本', + `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `version` int NOT NULL DEFAULT 0 COMMENT '乐观锁', + `is_deleted` tinyint NOT NULL DEFAULT 0 COMMENT '伪删除标记', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '学生用户简历表' ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1;