You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.7 KiB

CREATE TABLE `t_pro_clocking_in` (
`id` bigint(20) NOT NULL,
`member_id` bigint(20) DEFAULT 0 COMMENT '打卡成员id',
`checker_id` bigint(20) DEFAULT 0 COMMENT '检查人成员id',
`morning` bigint(20) DEFAULT 0 COMMENT '早打卡时间',
`morning_status` tinyint(1) DEFAULT 0 COMMENT '早打卡状态(0未打卡,1已打卡,2驳回,3审核通过)',
`night` bigint(20) DEFAULT 0 COMMENT '晚打卡时间',
`night_status` tinyint(1) DEFAULT 0 COMMENT '晚打卡状态(0未打卡,1已打卡,2驳回,3审核通过)',
`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 `checker_index` (`checker_id`) USING BTREE,
KEY `member_index` (`member_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='打卡记录表';
CREATE TABLE `t_pro_deliver` (
`id` bigint(20) NOT NULL,
`task_sub_id` bigint(20) DEFAULT 0 COMMENT '任务分解id',
`member_id` bigint(20) DEFAULT 0 COMMENT '上传成员id',
`file_id` bigint(20) DEFAULT 0 COMMENT '文件id',
`file_path` varchar(255) DEFAULT '' COMMENT '文件观看路径',
`content` varchar(255) DEFAULT '' COMMENT '文本内容(可以是链接)',
`project_id` bigint(20) DEFAULT 0 COMMENT '项目id',
`time` bigint(20) 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 DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
KEY `member_index` (`member_id`) USING BTREE,
KEY `task_sub_id_index` (`task_sub_id`) USING BTREE,
KEY `file_index` (`file_id`) USING BTREE,
KEY `project_index` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='交付物表';
CREATE TABLE `t_pro_deliver_checker` (
`id` bigint(20) NOT NULL,
`deliver_id` bigint(20) DEFAULT 0 COMMENT '交付物id',
`member_id` bigint(20) DEFAULT 0 COMMENT '检查人成员id',
`score` varchar(10) DEFAULT '' COMMENT '分数',
`remark` varchar(255) DEFAULT '' COMMENT '备注',
`status` tinyint(1) 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 DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE,
KEY `deliver_index` (`deliver_id`) USING BTREE,
KEY `member_index` (`member_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='交付物检查表';