-- ----------------------------
-- Table structure for blade_annual_inspection_record
-- ----------------------------
DROP TABLE IF EXISTS `blade_annual_inspection_record`;
CREATE TABLE `blade_annual_inspection_record` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `vehicle_type` varchar(20) NOT NULL COMMENT '车船类型',
  `vehicle_no` varchar(30) NOT NULL COMMENT '车牌号/船号',
  `inspection_assessment_date` date NOT NULL COMMENT '检测评定日期',
  `vehicle_technical_level` varchar(20) DEFAULT NULL COMMENT '车辆技术等级',
  `ship_inspection_type` varchar(20) DEFAULT NULL COMMENT '船舶检验类型',
  `valid_until_date` date NOT NULL COMMENT '有效期截止日',
  `passenger_type_level` varchar(50) DEFAULT NULL COMMENT '客车类型及等级',
  `inspection_unit` varchar(50) DEFAULT NULL COMMENT '检测评定单位',
  `fee` decimal(18,2) NOT NULL COMMENT '费用',
  `assessment_unit` varchar(50) DEFAULT NULL COMMENT '评定(复核)单位',
  `attachments` varchar(1000) DEFAULT NULL COMMENT '附件',
  `remark` varchar(200) DEFAULT NULL COMMENT '备注',
  `create_user` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
  `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  `status` int(11) DEFAULT '1' COMMENT '状态',
  `is_deleted` int(11) DEFAULT '0' COMMENT '是否已删除',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_annual_inspection_record_vehicle` (`vehicle_type`,`vehicle_no`) USING BTREE,
  KEY `idx_annual_inspection_record_assessment` (`inspection_assessment_date`) USING BTREE,
  KEY `idx_annual_inspection_record_valid` (`valid_until_date`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='年检记录';

-- ----------------------------
-- Records of blade_menu for annual inspection record
-- parent_id 默认挂载至 transport.sql 中的“车/船务管理”：2075436235826896898
-- ----------------------------
INSERT INTO `blade_menu` (`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `component`, `remark`, `is_deleted`) VALUES
(2077650000000000001, 2075436235826896898, 'annual_inspection_record', '年检记录', 'annual_inspection_record', '/vehicle/annual-inspection-record', 'iconfont iconicon_doc', 100, 1, 0, 1, '', '', 0),
(2077650000000000002, 2077650000000000001, 'annual_inspection_record_add', '新增', 'annual_inspection_record_add', '', '', 1, 2, 0, 1, NULL, '', 0),
(2077650000000000003, 2077650000000000001, 'annual_inspection_record_edit', '编辑', 'annual_inspection_record_edit', '', '', 2, 2, 0, 1, NULL, '', 0),
(2077650000000000004, 2077650000000000001, 'annual_inspection_record_delete', '批量删除', 'annual_inspection_record_delete', '', '', 3, 2, 0, 1, NULL, '', 0),
(2077650000000000005, 2077650000000000001, 'annual_inspection_record_view', '查看', 'annual_inspection_record_view', '', '', 4, 2, 0, 1, NULL, '', 0),
(2077650000000000006, 2077650000000000001, 'annual_inspection_record_import', '批量导入', 'annual_inspection_record_import', '', '', 5, 2, 0, 1, NULL, '', 0),
(2077650000000000007, 2077650000000000001, 'annual_inspection_record_template', '下载模板', 'annual_inspection_record_template', '', '', 6, 2, 0, 1, NULL, '', 0),
(2077650000000000008, 2077650000000000001, 'annual_inspection_record_export', '批量导出', 'annual_inspection_record_export', '', '', 7, 2, 0, 1, NULL, '', 0),
(2077650000000000009, 2077650000000000001, 'annual_inspection_record_list', '列表', 'annual_inspection_record_list', '/blade-transport/annual-inspection-record/list', '', 8, 2, 0, 1, NULL, '', 0);
