liwen
11 months ago
2 changed files with 340 additions and 343 deletions
@ -1 +1,339 @@ |
|||||||
alter table `hzims_safe_safety_tool` add column `advance_notice_days` tinyint(4) default 0 comment '安全工器具提前通知天数'; |
alter table `hzims_safe_safety_tool` add column `advance_notice_days` tinyint(4) default 0 comment '安全工器具提前通知天数'; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_rehearsal_plan` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`subject` varchar(50) NOT NULL COMMENT '演练科目', |
||||||
|
`scheduled_start_time` date NOT NULL COMMENT '演练计划开始时间', |
||||||
|
`scheduled_end_time` date NOT NULL COMMENT '演练计划结束时间', |
||||||
|
`location` varchar(255) NOT NULL COMMENT '演练地点', |
||||||
|
`commander` varchar(10) NOT NULL COMMENT '总指挥', |
||||||
|
`rehearsal_method` varchar(20) DEFAULT '' COMMENT '演练方式', |
||||||
|
`rehearsal_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '演练状态', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='演练计划表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_rehearsal_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`rehearsal_plan_id` bigint(20) NOT NULL COMMENT '演练计划id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`people_num` int(10) NOT NULL DEFAULT '0' COMMENT '参演人数', |
||||||
|
`people_name` varchar(5000) DEFAULT '' COMMENT '参演人员', |
||||||
|
`actual_start_time` datetime NOT NULL COMMENT '演练实际开始时间', |
||||||
|
`actual_end_time` datetime NOT NULL COMMENT '演练实际结束时间', |
||||||
|
`record` varchar(250) NOT NULL DEFAULT '' COMMENT '演练记录', |
||||||
|
`comment` varchar(250) NOT NULL DEFAULT '' COMMENT '演练评价', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '演练图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '演练附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='演练记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_train_plan` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`scheduled_start_time` date NOT NULL COMMENT '计划培训开始时间', |
||||||
|
`scheduled_end_time` date NOT NULL COMMENT '计划培训结束时间', |
||||||
|
`lesson` varchar(255) NOT NULL COMMENT '培训课程', |
||||||
|
`location` varchar(255) NOT NULL COMMENT '培训地点', |
||||||
|
`train_method` varchar(20) DEFAULT '' COMMENT '培训方式', |
||||||
|
`teacher` varchar(20) NOT NULL DEFAULT '' COMMENT '培训讲师', |
||||||
|
`train_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '培训状态', |
||||||
|
`is_test` int(2) NOT NULL DEFAULT '0' COMMENT '关联考试:0-否,1-是', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='培训计划表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_train_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`train_plan_id` bigint(20) DEFAULT NULL COMMENT '培训计划id', |
||||||
|
`train_record_name` varchar(50) NOT NULL DEFAULT '' COMMENT '培训记录名称', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`people_name` varchar(5000) DEFAULT '' COMMENT '培训学员', |
||||||
|
`content` mediumtext DEFAULT '' COMMENT '培训内容', |
||||||
|
`actual_start_time` datetime DEFAULT NULL COMMENT '实际培训开始时间', |
||||||
|
`actual_end_time` datetime DEFAULT NULL COMMENT '实际培训结束时间', |
||||||
|
`command` varchar(250) DEFAULT NULL COMMENT '培训评价', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '培训图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '培训附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='培训记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_test` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`train_plan_id` bigint(20) DEFAULT NULL COMMENT '培训计划id', |
||||||
|
`train_record_id` bigint(20) DEFAULT NULL COMMENT '培训记录id', |
||||||
|
`test_name` varchar(50) NOT NULL DEFAULT '' COMMENT '考试记录名称', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`test_start_time` datetime NOT NULL COMMENT '考试开始时间', |
||||||
|
`test_end_time` datetime NOT NULL COMMENT '考试结束时间', |
||||||
|
`location` varchar(255) NOT NULL COMMENT '考试地点', |
||||||
|
`subject` varchar(50) NOT NULL COMMENT '考试科目', |
||||||
|
`proctor` varchar(20) NOT NULL COMMENT '监考人', |
||||||
|
`people_name` varchar(1000) DEFAULT '' COMMENT '参考人员', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '考试图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '考试附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='考试记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_test_score` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`test_id` bigint(20) DEFAULT NULL COMMENT '考试记录id', |
||||||
|
`name` varchar(50) NOT NULL COMMENT '姓名', |
||||||
|
`score` int(10) DEFAULT NULL COMMENT '成绩', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='考试成绩表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_conference_plan` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`theme` varchar(50) NOT NULL COMMENT '会议主题', |
||||||
|
`scheduled_start_time` date NOT NULL COMMENT '会议计划开始时间', |
||||||
|
`scheduled_end_time` date NOT NULL COMMENT '会议计划结束时间', |
||||||
|
`location` varchar(255) NOT NULL COMMENT '会议地点', |
||||||
|
`host` varchar(10) NOT NULL COMMENT '主持人', |
||||||
|
`conference_method` varchar(20) DEFAULT '' COMMENT '会议方式', |
||||||
|
`conference_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '会议状态', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='会议计划表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_conference_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`conference_plan_id` bigint(20) NOT NULL COMMENT '会议计划id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`people_name` varchar(5000) DEFAULT '' COMMENT '参会人员', |
||||||
|
`actual_start_time` datetime DEFAULT NULL COMMENT '会议实际开始时间', |
||||||
|
`actual_end_time` datetime DEFAULT NULL COMMENT '会议实际结束时间', |
||||||
|
`recorder` varchar(20) DEFAULT '' COMMENT '记录人', |
||||||
|
`content` mediumtext DEFAULT '' DEFAULT '' COMMENT '会议内容', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '会议图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '会议附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='会议记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_hygiene_plan` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编码', |
||||||
|
`standard_score` int(10) NOT NULL DEFAULT '100' COMMENT '标准总分值', |
||||||
|
`scheduled_start_time` date NOT NULL COMMENT '计划开始时间', |
||||||
|
`scheduled_end_time` date NOT NULL COMMENT '计划结束时间', |
||||||
|
`hygiene_plan_status` varchar(50) NOT NULL DEFAULT 'WAITING' COMMENT '自查计划状态', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查计划表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_hygiene_zone` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`hygiene_plan_id` bigint(20) NOT NULL COMMENT '卫生自查计划id', |
||||||
|
`zone` varchar(50) NOT NULL COMMENT '责任区', |
||||||
|
`principal` varchar(20) NOT NULL COMMENT '责任人', |
||||||
|
`check_item` mediumtext NOT NULL COMMENT '检查项', |
||||||
|
`check_item_score` varchar(255) NOT NULL COMMENT '检查项分值', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查区域表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_hygiene_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`hygiene_plan_id` bigint(20) NOT NULL COMMENT '卫生自查计划id', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`actual_start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际开始时间', |
||||||
|
`actual_end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际结束时间', |
||||||
|
`check_user` varchar(20) NOT NULL DEFAULT '' COMMENT '检查人', |
||||||
|
`hygiene_zone_ids` varchar(1000) NOT NULL COMMENT '卫生自查区域id', |
||||||
|
`check_result` mediumtext NOT NULL COMMENT '检查结果', |
||||||
|
`comprehensive_score` int(10) NOT NULL COMMENT '综合评分', |
||||||
|
`week_num` int(10) NOT NULL COMMENT '周数', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '检查图片', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_car` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '单位', |
||||||
|
`car_brand` varchar(50) NOT NULL COMMENT '品牌', |
||||||
|
`car_type` varchar(50) NOT NULL COMMENT '型号', |
||||||
|
`plate_number` varchar(50) NOT NULL COMMENT '车牌号', |
||||||
|
`registration_time` date NOT NULL COMMENT '上牌时间', |
||||||
|
`insurance_pay_last_time` date NOT NULL COMMENT '上期缴车保时间', |
||||||
|
`insurance_pay_next_time` date NOT NULL COMMENT '下期缴车保时间', |
||||||
|
`annual_inspection_time` date NOT NULL COMMENT '年检时间', |
||||||
|
`annual_inspection_status` varchar(50) NOT NULL COMMENT '年检状态', |
||||||
|
`insurance_status` varchar(50) NOT NULL COMMENT '保险状态', |
||||||
|
`maintenance_last_time` date DEFAULT NULL COMMENT '上期保养时间', |
||||||
|
`maintenance_next_time` date DEFAULT NULL COMMENT '下期保养时间', |
||||||
|
`maintenance_mileage` decimal(10, 2) DEFAULT NULL COMMENT '保养里程', |
||||||
|
`maintenance_status` varchar(50) DEFAULT NULL COMMENT '保养状态', |
||||||
|
`manager` varchar(50) NOT NULL COMMENT '车辆管理人', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '车辆图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '车辆附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车辆台账表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_car_maintenance` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`car_id` bigint(20) NOT NULL COMMENT '车辆id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`maintenance_type` varchar(50) NOT NULL COMMENT '维保类型', |
||||||
|
`content` mediumtext NOT NULL COMMENT '维保内容', |
||||||
|
`start_time` date NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '维保开始时间', |
||||||
|
`end_time` date NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '维保结束时间', |
||||||
|
`location` varchar(255) NOT NULL COMMENT '维保地点', |
||||||
|
`cost` bigint(20) NOT NULL COMMENT '维保费用', |
||||||
|
`maintainer` varchar(20) NOT NULL COMMENT '维保人', |
||||||
|
`manager_advice` varchar(500) DEFAULT NULL COMMENT '车辆管理人意见', |
||||||
|
`maintenance_status` varchar(50) DEFAULT NULL COMMENT '维保状态', |
||||||
|
`confirmation_time` datetime DEFAULT NULL COMMENT '确认时间', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '维保图片', |
||||||
|
`file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '维保附件', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车辆维保记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_car_used_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`car_id` bigint(20) NOT NULL COMMENT '车辆id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`unit` varchar(50) NOT NULL COMMENT '用车单位', |
||||||
|
`used_location` varchar(255) NOT NULL COMMENT '使用地点', |
||||||
|
`user` varchar(20) NOT NULL COMMENT '使用人', |
||||||
|
`remark` mediumtext DEFAULT NULL COMMENT '使用详情', |
||||||
|
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '使用时间', |
||||||
|
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '收车时间', |
||||||
|
`start_miles` decimal(10, 2) NOT NULL COMMENT '出车公里数', |
||||||
|
`end_miles` decimal(10, 2) NOT NULL COMMENT '收车公里数', |
||||||
|
`miles` decimal(10, 2) NOT NULL COMMENT '行驶公里数', |
||||||
|
`used_status` varchar(50) DEFAULT NULL COMMENT '用车状态', |
||||||
|
`confirmation_time` datetime DEFAULT NULL COMMENT '确认时间', |
||||||
|
`img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '里程图片', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用车记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_car_check_record` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`car_id` bigint(20) NOT NULL COMMENT '车辆id', |
||||||
|
`code` varchar(50) NOT NULL COMMENT '编号', |
||||||
|
`checker` varchar(50) NOT NULL COMMENT '检查人', |
||||||
|
`check_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '检查时间', |
||||||
|
`conclusion` mediumtext NOT NULL COMMENT '检查结论', |
||||||
|
`remark` varchar(500) NOT NULL DEFAULT '' COMMENT '填报备注', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车检记录表' ROW_FORMAT=Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_car_check_item` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键id', |
||||||
|
`car_check_record_id` bigint(20) NOT NULL COMMENT '车检记录id', |
||||||
|
`check_item` varchar(500) NOT NULL COMMENT '检查项目', |
||||||
|
`check_content` mediumtext NOT NULL COMMENT '检查内容', |
||||||
|
`check_result` mediumtext NOT NULL COMMENT '检查结果', |
||||||
|
`create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', |
||||||
|
`create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', |
||||||
|
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', |
||||||
|
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', |
||||||
|
`status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', |
||||||
|
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车检项表' ROW_FORMAT=Dynamic; |
Loading…
Reference in new issue