Browse Source

20211230

master
zy_Java 4 years ago
parent
commit
93ce11092c
  1. 110
      内部项目/defaultwbs.sql
  2. 2
      内部项目/plugin.sql
  3. 22
      内部项目/sports.sql
  4. 97
      内部项目/tall3通用.sql

110
内部项目/defaultwbs.sql

@ -76,7 +76,91 @@ CREATE TABLE `t_pro_member_salary` (
`rec_status` tinyint(1) unsigned DEFAULT 0 COMMENT '状态,0正常 1禁用 2删除',
PRIMARY KEY (`id`) USING BTREE,
KEY `salary_member_index` (`member_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='成员工资表';
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='成员工资表';
-- 20211222修改打卡插件,添加早晚打卡原因
ALTER TABLE t_pro_clocking_in
ADD `morning_remark` varchar(128) DEFAULT '' COMMENT '早打卡原因',
ADD `night_remark` varchar(128) DEFAULT '' COMMENT '晚打卡原因';
-- 20211224添加交付物文件表
DROP TABLE IF EXISTS `t_pro_deliver_file`;
CREATE TABLE `t_pro_deliver_file` (
`id` bigint(20) NOT NULL,
`deliver_id` bigint(20) DEFAULT 0 COMMENT '交付物id',
`file_id` bigint(20) DEFAULT 0 COMMENT '文件id',
`file_name` varchar(10) DEFAULT '' COMMENT '文件名',
`file_path` varchar(256) DEFAULT '' COMMENT '文件路径',
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`rec_status` tinyint(1) unsigned DEFAULT 0
PRIMARY KEY (`id`) USING BTREE,
KEY `file_deliver_index` (`deliver_id`) USING BTREE,
KEY `file_index` (`file_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='交付物文件关联表';
-- 20211224添加文件信息表
CREATE TABLE `t_file_commit` (
`id` bigint(20) NOT NULL,
`name` varchar(64) DEFAULT '' COMMENT '文件名',
`path` varchar(128) DEFAULT '' COMMENT '文件路径',
`visit_path` varchar(512) DEFAULT '' COMMENT '访问路径',
`md5` varchar(32) DEFAULT '',
`sha1` varchar(40) DEFAULT '',
`time` bigint(20) DEFAULT 0 COMMENT '上传的时间',
`count` int(11) DEFAULT 0 COMMENT '被引用的次数',
`status` tinyint(1) unsigned DEFAULT 1 COMMENT '文件状态 0:未上传 1:全部上传',
`operator` bigint(20) DEFAULT 0 COMMENT '操作人id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`rec_status` tinyint(1) unsigned DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件信息表';
{
@ -85,8 +169,8 @@ CREATE TABLE `t_pro_member_salary` (
//
"memberName":"张三",
//
"fixedSalaryNum": 5000,
//
"fixedSalaryNum": 5000,
//
"fixedSalary": {
//
"basicWage":5,
@ -100,12 +184,12 @@ CREATE TABLE `t_pro_member_salary` (
//
"askForLeaveDay":3
}
//
//
"positionWage":5,
"position":{
Map<String,Integer>
}
//
//
"workingTimeWage":5
"workingTime":{
Map<String,Integer>
@ -125,8 +209,8 @@ CREATE TABLE `t_pro_member_salary` (
"assess":10
},
//
"stockRightsNum": 5000,
//
"stockRightsNum": 5000,
//
"stockRightsNum": {
//
"sharePtion":10,
@ -136,7 +220,7 @@ CREATE TABLE `t_pro_member_salary` (
//
"shouldSalaryNum": 5000,
//
"socialSecurityNum":5000,
"socialSecurityNum":5000,
//
"socialSecurity":{
//
@ -151,9 +235,9 @@ CREATE TABLE `t_pro_member_salary` (
"unemploymentInsurance":15,
//
"housingFund":15
},
},
//
"personalTaxNum":5000,
//
"realSalaryNum": 0
}
"personalTaxNum":5000,
//
"realSalaryNum": 0
}

2
内部项目/plugin.sql

@ -107,7 +107,7 @@ INSERT INTO `t_pro_plugin` VALUES (5, '', 0, '', 0, '2021-07-23 14:49:17', '2021
INSERT INTO `t_pro_plugin` VALUES (6, '', 0, '', 0, '2021-07-23 14:49:19', '2021-07-23 14:49:19', 0);
INSERT INTO `t_pro_plugin` VALUES (7, '', 0, '', 0, '2021-07-23 14:49:22', '2021-07-23 14:49:22', 0);
INSERT INTO `t_pro_plugin` VALUES (8, '', 0, '', 0, '2021-07-23 14:49:24', '2021-07-23 14:49:24', 0);
INSERT INTO `t_pro_plugin` VALUES (1001, '斌哥的测试插件', 0, '', 0, '2021-07-23 10:14:12', '2021-07-23 14:56:49', 0);
INSERT INTO `t_pro_plugin` VALUES (1001, '示例插件1', 0, '', 0, '2021-07-23 10:14:12', '2021-07-23 14:56:49', 0);
INSERT INTO `t_pro_plugin` VALUES (1002, '示例插件2', 0, '', 0, '2021-07-23 10:28:24', '2021-07-23 10:29:07', 0);
INSERT INTO `t_pro_plugin` VALUES (1003, '示例插件3', 0, '', 0, '2021-07-23 10:29:01', '2021-07-23 10:29:10', 0);

22
内部项目/sports.sql

@ -25,7 +25,7 @@ CREATE TABLE `t_file_commit` (
CREATE TABLE `t_organization` (
`id` bigint(20) NOT NULL,
`organization_type` tinyint(2) DEFAULT 0 COMMENT '职位归属0体育局 1:省跳协 2:市跳协',
`organization_type` tinyint(2) DEFAULT 0 COMMENT '职位归属0:体育局 1:省跳协 2:市跳协',
`code` varchar(64) DEFAULT '' COMMENT '机构编码',
`name` varchar(64) DEFAULT '' COMMENT '机构名称',
`short_name` varchar(64) DEFAULT '' COMMENT '机构简称',
@ -63,7 +63,7 @@ CREATE TABLE `t_organization_member` (
KEY `member_organization_index` (`organization_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='机构成员表';
-- 成员职位表
-- 成员职位表
DROP TABLE IF EXISTS `t_organization_member_position`;
CREATE TABLE `t_organization_member_position` (
`id` bigint(20) NOT NULL,
@ -213,7 +213,7 @@ CREATE TABLE `t_player` (
-- 是否缴费
-- 是否结业
-- 证书颁发状态
-- 证书文件id
-- 证书文件id
DROP TABLE IF EXISTS `t_player_apply`;
CREATE TABLE `t_player_apply` (
`id` bigint(20) NOT NULL,
@ -313,7 +313,7 @@ CREATE TABLE `t_question` (
PRIMARY KEY (`id`) USING BTREE,
KEY `question_templete_idndex` (`templete_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='模板信息表';
-- 选项表
CREATE TABLE `t_question_option` (
`id` bigint(20) NOT NULL,
@ -348,3 +348,17 @@ CREATE TABLE `t_question_record` (
KEY `record_business_Index` (`business_Id`) USING BTREE,
KEY `record_question_index` (`question_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='选项表';
-- 20211221为了考级修改
-- 培训计划表 添加类型字段 为了区分培训项目和考级项目
ALTER TABLE t_training_plan
ADD `type` tinyint(1) unsigned DEFAULT 0 COMMENT '计划类型 0培训计划 1考级计划 默认0';
-- 选手报名表添加分数字段
ALTER TABLE t_player_apply
ADD `score` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '分数';
-- 运动员等级表 添加价格字段
ALTER TABLE t_player_level
ADD `price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '价格';

97
内部项目/tall3通用.sql

@ -340,6 +340,33 @@ CREATE TABLE `t_pro_task_detail` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务详情表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_status_record
-- ----------------------------
-- ----------------------------
-- Table structure for t_pro_task_sub
-- ----------------------------
DROP TABLE IF EXISTS `t_pro_task_sub`;
CREATE TABLE `t_pro_task_sub` (
`id` bigint(20) NOT NULL,
`plan_start_time` bigint(20) NULL DEFAULT 0 COMMENT '计划开始时间',
`plan_duration` bigint(20) NULL DEFAULT 0 COMMENT '计划时长',
`plan_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间',
`real_start_time` bigint(20) NULL DEFAULT 0 COMMENT '实际开始时间',
`real_duration` bigint(20) NULL DEFAULT 0 COMMENT '实际时长',
`real_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间',
`task_status` tinyint(1) NULL DEFAULT 0 COMMENT '任务完成状态 0未开始 1进行中 2暂停 3完成',
`task_detail_id` bigint(20) NULL DEFAULT 0 COMMENT '任务详情id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp,
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `task_detail_index`(`task_detail_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分解表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_detail
-- ----------------------------
@ -460,29 +487,6 @@ CREATE TABLE `t_pro_task_process` (
-- Records of t_pro_task_process
-- ----------------------------
-- ----------------------------
-- Table structure for t_pro_task_share
-- ----------------------------
DROP TABLE IF EXISTS `t_pro_task_share`;
CREATE TABLE `t_pro_task_share` (
`id` bigint(20) NOT NULL,
`original_project_id` bigint(20) NULL DEFAULT 0 COMMENT '原项目id',
`share_user_id` bigint(20) NULL DEFAULT 0 COMMENT '分享人id',
`share_type` tinyint(1) NULL DEFAULT 0 COMMENT '分享类型(0-分享,1-体验)',
`share_project_id` bigint(20) NULL DEFAULT 0 COMMENT '分享项目id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp,
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `original_project_index`(`original_project_id`) USING BTREE,
INDEX `share_user_index`(`share_user_id`) USING BTREE,
INDEX `share_project_index`(`share_project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分享表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_share
-- ----------------------------
-- ----------------------------
-- Table structure for t_pro_task_status_record
-- ----------------------------
@ -501,30 +505,6 @@ CREATE TABLE `t_pro_task_status_record` (
INDEX `user_index`(`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务状态记录表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_status_record
-- ----------------------------
-- ----------------------------
-- Table structure for t_pro_task_sub
-- ----------------------------
DROP TABLE IF EXISTS `t_pro_task_sub`;
CREATE TABLE `t_pro_task_sub` (
`id` bigint(20) NOT NULL,
`plan_start_time` bigint(20) NULL DEFAULT 0 COMMENT '计划开始时间',
`plan_duration` bigint(20) NULL DEFAULT 0 COMMENT '计划时长',
`plan_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间',
`real_start_time` bigint(20) NULL DEFAULT 0 COMMENT '实际开始时间',
`real_duration` bigint(20) NULL DEFAULT 0 COMMENT '实际时长',
`real_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间',
`task_status` tinyint(1) NULL DEFAULT 0 COMMENT '任务完成状态 0未开始 1进行中 2暂停 3完成',
`task_detail_id` bigint(20) NULL DEFAULT 0 COMMENT '任务详情id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp,
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `task_detail_index`(`task_detail_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分解表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_sub
@ -574,6 +554,29 @@ CREATE TABLE `t_sys_log` (
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for t_pro_task_share
-- ----------------------------
DROP TABLE IF EXISTS `t_pro_task_share`;
CREATE TABLE `t_pro_task_share` (
`id` bigint(20) NOT NULL,
`original_project_id` bigint(20) NULL DEFAULT 0 COMMENT '原项目id',
`share_user_id` bigint(20) NULL DEFAULT 0 COMMENT '分享人id',
`share_type` tinyint(1) NULL DEFAULT 0 COMMENT '分享类型(0-分享,1-体验)',
`share_project_id` bigint(20) NULL DEFAULT 0 COMMENT '分享项目id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp,
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `original_project_index`(`original_project_id`) USING BTREE,
INDEX `share_user_index`(`share_user_id`) USING BTREE,
INDEX `share_project_index`(`share_project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分享表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of t_pro_task_share
-- ----------------------------
-- ---2021.08.26 生产已同步----------
DROP TABLE IF EXISTS `t_pro_project_share`;

Loading…
Cancel
Save