Browse Source

20211026

master
zy_Java 4 years ago
parent
commit
991568a68c
  1. 58
      内部项目/tall3通用.sql

58
内部项目/tall3通用.sql

@ -609,64 +609,6 @@ CREATE TABLE `t_pro_share_member` (
INDEX `member_id_index`(`member_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '被分享成员信息表' ROW_FORMAT = Compact;
-----
DROP TABLE IF EXISTS `t_pro_deliver`;
CREATE TABLE `t_pro_deliver` (
`id` bigint(20) NOT NULL,
`task_sub_id` bigint(20) NULL DEFAULT 0 COMMENT '任务分解id',
`member_id` bigint(20) NULL DEFAULT 0 COMMENT '上传成员id',
`file_id` bigint(20) NULL DEFAULT 0 COMMENT '文件id',
`file_path` varchar(255) NULL DEFAULT '' COMMENT '文件观看路径',
`content` varchar(255) NULL DEFAULT '' COMMENT '文本内容(可以是链接)',
`project_id` bigint(20) NULL DEFAULT 0 COMMENT '项目id',
`time` bigint(20) NULL DEFAULT 0 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 NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
INDEX `member_index`(`member_id`) USING BTREE,
INDEX `task_sub_id_index`(`task_sub_id`) USING BTREE,
INDEX `file_index`(`file_id`) USING BTREE,
INDEX `project_index`(`project_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '交付物表' ROW_FORMAT = Compact;
DROP TABLE IF EXISTS `t_pro_deliver_checker`;
CREATE TABLE `t_pro_deliver_checker` (
`id` bigint(20) NOT NULL,
`deliver_id` bigint(20) NULL DEFAULT 0 COMMENT '交付物id',
`member_id` bigint(20) NULL DEFAULT 0 COMMENT '检查人成员id',
`score` varchar(10) NULL DEFAULT '' COMMENT '分数',
`remark` varchar(255) NULL DEFAULT '' COMMENT '备注',
`status` tinyint(1) NULL DEFAULT 0 COMMENT '检查状态(0-未审核,1-合格,2-驳回)',
`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 `deliver_index`(`deliver_id`) USING BTREE,
INDEX `member_index`(`member_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '交付物检查表' ROW_FORMAT = Compact;
DROP TABLE IF EXISTS `t_pro_clocking_in`;
CREATE TABLE `t_pro_clocking_in` (
`id` bigint(20) NOT NULL,
`member_id` bigint(20) NULL DEFAULT 0 COMMENT '打卡成员id',
`checker_id` bigint(20) NULL DEFAULT 0 COMMENT '检查人成员id',
`morning` bigint(20) NULL DEFAULT 0 COMMENT '早打卡时间',
`morning_status` tinyint(1) NULL DEFAULT 0 COMMENT '早打卡状态(0未打卡,1已打卡,2驳回)',
`night` bigint(20) NULL DEFAULT 0 COMMENT '晚打卡时间',
`night_status` tinyint(1) NULL DEFAULT 0 COMMENT '晚打卡状态(0未打卡,1已打卡,2驳回)',
`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 `checker_index`(`checker_id`) USING BTREE,
INDEX `member_index`(`member_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '交付物检查表' ROW_FORMAT = Compact;
alter table t_pro_role_task add role_duty tinyint(2) NULL DEFAULT 0 COMMENT '角色职责(0-负责人,1-检查人)';
DROP TABLE IF EXISTS `t_sys_holidays`;

Loading…
Cancel
Save