1 Star 0 Fork 0

白药/OA0626

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
oasys.sql 5.65 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Navicat MySQL Data Transfer
Source Server : dev_mysql
Source Server Type : MySQL
Source Server Version : 50644
Source Host : 10.10.200.1:3306
Source Schema : oasys
Target Server Type : MySQL
Target Server Version : 50644
File Encoding : 65001
Date: 23/06/2022 13:28:58
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for attendance
-- ----------------------------
DROP TABLE IF EXISTS `attendance`;
CREATE TABLE `attendance` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`sign_date` date NOT NULL,
`sign_in_time` time NOT NULL,
`sign_out_time` time NOT NULL,
`has_sign_out` tinyint(1) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for attendance_time
-- ----------------------------
DROP TABLE IF EXISTS `attendance_time`;
CREATE TABLE `attendance_time` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`begin` varchar(255) NOT NULL,
`end` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of attendance_time
-- ----------------------------
BEGIN;
INSERT INTO `attendance_time` VALUES (1, '09:00', '17:00');
COMMIT;
-- ----------------------------
-- Table structure for file
-- ----------------------------
DROP TABLE IF EXISTS `file`;
CREATE TABLE `file` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`path` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`size` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
`parent_id` int(11) NOT NULL,
`personal` tinyint(1) NOT NULL,
`created_time` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of file
-- ----------------------------
BEGIN;
INSERT INTO `file` VALUES (1, '根目录', '/', '文件夹', '-', 1, 0, 1, '2020-01-01 00:00:00');
COMMIT;
-- ----------------------------
-- Table structure for leave
-- ----------------------------
DROP TABLE IF EXISTS `leave`;
CREATE TABLE `leave` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`begin_date` date NOT NULL,
`end_date` date NOT NULL,
`reason` varchar(500) NOT NULL,
`comment` varchar(500) DEFAULT NULL,
`type` varchar(4) NOT NULL,
`status` tinyint(1) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for notice
-- ----------------------------
DROP TABLE IF EXISTS `notice`;
CREATE TABLE `notice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(255) NOT NULL,
`has_read` tinyint(4) NOT NULL,
`created_time` datetime NOT NULL,
`receiver_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for post_transfer
-- ----------------------------
DROP TABLE IF EXISTS `post_transfer`;
CREATE TABLE `post_transfer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`station_now` varchar(255) DEFAULT NULL,
`station_to_transfer` varchar(255) DEFAULT NULL,
`transfer_type` varchar(255) DEFAULT NULL,
`transfer_reason` varchar(255) DEFAULT NULL,
`apply_date` varchar(255) DEFAULT NULL,
`approve_state` varchar(255) DEFAULT NULL,
`approve_result` varchar(255) DEFAULT NULL,
`deal_date` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of post_transfer
-- ----------------------------
BEGIN;
INSERT INTO `post_transfer` VALUES (6, '1', '初级开发', '初级开发', '升职', '1', '2022-06-08', '已处理', '审批未通过', '2022-06-23');
INSERT INTO `post_transfer` VALUES (7, 'test', '高级开发', '产品', '升职', 'q', '2022-06-23', '已处理', '审批未通过', '2022-06-23');
INSERT INTO `post_transfer` VALUES (9, 'test2', '初级开发', '高级开发', '升职', '11', '2022-06-23', '已处理', '审批通过', '2022-06-23');
COMMIT;
-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of role
-- ----------------------------
BEGIN;
INSERT INTO `role` VALUES (1, '员工');
INSERT INTO `role` VALUES (2, '主管');
INSERT INTO `role` VALUES (3, '经理');
COMMIT;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`password` varchar(100) NOT NULL,
`synopsis` varchar(200) NOT NULL,
`avatar` varchar(45) NOT NULL,
`email` varchar(255) NOT NULL,
`role_id` int(11) NOT NULL,
`depart` varchar(50) DEFAULT NULL,
`station` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
INSERT INTO `user` VALUES (1, 'admin', '$2a$10$VPnyJP6ogfN/uY/l8uUqOOvwtX4NSJ9rvhQFs8FvWuIeH3QPNGxky', '不i啊师傅沙漠好人卡麻烦', '/img/avatar/1.jpg', 'kwxy1314@qq.com', 3, NULL, NULL);
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baiyaoo/oa0626.git
git@gitee.com:baiyaoo/oa0626.git
baiyaoo
oa0626
OA0626
master

搜索帮助