施工人员补卡记录、请假记录相关接口
This commit is contained in:
@ -608,3 +608,50 @@ CREATE TABLE `bus_leave`
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
|
||||
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组id'
|
||||
) comment = '施工人员请假申请' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_worker_daily_report`;
|
||||
CREATE TABLE `bus_worker_daily_report`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`project_id` bigint not null comment '项目id',
|
||||
`team_id` bigint null comment '班组id',
|
||||
`user_id` bigint not null comment '申请人id',
|
||||
`user_name` varchar(50) not null comment '申请人名字',
|
||||
`today_completed_work` text null comment '今日完成工作',
|
||||
`unfinished_work` text null comment '未完成工作',
|
||||
`tomorrow_work` text null comment '明日工作',
|
||||
`coordination_help` text null comment '需协调与帮助',
|
||||
`file` varchar(1024) null comment '附件',
|
||||
`is_review` tinyint(4) default 1 not null comment '是否审核(1审核 2不审核)',
|
||||
`reviewer_id` bigint null comment '审核人id',
|
||||
`reviewer_name` varchar(50) null comment '审核人名字',
|
||||
`review_opinion` char(1) default '1' not null comment '审核人意见(1未读 2同意 3拒绝)',
|
||||
`review_explain` varchar(512) null comment '审核人说明',
|
||||
`review_time` datetime null comment '审核人操作时间',
|
||||
`remark` varchar(512) null comment '备注',
|
||||
`create_by` varchar(64) null comment '创建者',
|
||||
`update_by` varchar(64) null comment '更新者',
|
||||
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
|
||||
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
|
||||
`deleted_at` datetime null comment '删除时间',
|
||||
`is_delete` tinyint(4) default 0 not null comment '是否删除(0正常 1删除)',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_user_id` (`user_id` ASC) USING BTREE comment '用户id',
|
||||
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
|
||||
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组id'
|
||||
) comment = '施工人员日报' collate = utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `bus_daily_piece_item`;
|
||||
CREATE TABLE `bus_daily_piece_item`
|
||||
(
|
||||
`id` bigint not null auto_increment comment '主键id',
|
||||
`report_id` bigint not null comment '日报id',
|
||||
`piece_type` varchar(50) not null comment '计件类型',
|
||||
`piece_count` int not null comment '计件数量',
|
||||
`piece_unit` varchar(20) null comment '计件单位',
|
||||
`remark` varchar(512) null comment '备注',
|
||||
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
|
||||
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
INDEX `idx_report_id` (`report_id` ASC) USING BTREE comment '日报id'
|
||||
) comment = '施工人员日报计件信息' collate = utf8mb4_unicode_ci;
|
||||
|
Reference in New Issue
Block a user