✨ 新增异常关联维修记录:维修记录加 exception_id,异常详情内联记录并新增录入接口
This commit is contained in:
@@ -5620,6 +5620,7 @@ CREATE TABLE `blade_vehicle_maintenance_record` (
|
||||
`tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
|
||||
`vehicle_type` varchar(20) NOT NULL COMMENT '车船类型',
|
||||
`vehicle_no` varchar(30) NOT NULL COMMENT '车牌号/船号',
|
||||
`exception_id` bigint(20) DEFAULT NULL COMMENT '关联异常处置ID(小程序录入时写入)',
|
||||
`maintainer` varchar(20) DEFAULT NULL COMMENT '维修人',
|
||||
`maintenance_time` datetime NOT NULL COMMENT '维修时间',
|
||||
`location` varchar(100) DEFAULT NULL COMMENT '维修位置',
|
||||
@@ -5642,7 +5643,8 @@ CREATE TABLE `blade_vehicle_maintenance_record` (
|
||||
`is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
KEY `idx_vehicle_maintenance_record_no` (`vehicle_no`) USING BTREE,
|
||||
KEY `idx_vehicle_maintenance_record_time` (`maintenance_time`) USING BTREE
|
||||
KEY `idx_vehicle_maintenance_record_time` (`maintenance_time`) USING BTREE,
|
||||
UNIQUE KEY `uk_vehicle_maintenance_record_exception` (`exception_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='车辆维修记录';
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user