Skip to content

Commit

Permalink
添加数据库设计sql文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan committed Jan 16, 2024
1 parent a9c36a2 commit ee8df33
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/java/com/achobeta/sql/interview_schedule.sql
Original file line number Diff line number Diff line change
@@ -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;
36 changes: 36 additions & 0 deletions src/main/java/com/achobeta/sql/stu_attachment.sql
Original file line number Diff line number Diff line change
@@ -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;
50 changes: 50 additions & 0 deletions src/main/java/com/achobeta/sql/student.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit ee8df33

Please sign in to comment.