-- ----------------------------
-- Table structure for blade_transport_driver
-- ----------------------------
DROP TABLE IF EXISTS `blade_transport_driver`;
CREATE TABLE `blade_transport_driver` (
  `id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
  `driver_name` varchar(20) NOT NULL COMMENT '司机姓名',
  `id_card_no` varchar(18) NOT NULL COMMENT '身份证号',
  `birthday` date DEFAULT NULL COMMENT '出生年月',
  `gender` varchar(10) DEFAULT NULL COMMENT '性别',
  `nation` varchar(20) DEFAULT NULL COMMENT '民族',
  `education` varchar(20) DEFAULT NULL COMMENT '学历',
  `address_region` varchar(100) DEFAULT NULL COMMENT '地址区划',
  `address` varchar(200) DEFAULT NULL COMMENT '详细地址',
  `posts` varchar(100) DEFAULT NULL COMMENT '岗位，多个使用逗号分隔',
  `id_card_front` varchar(1000) DEFAULT NULL COMMENT '身份证正面照',
  `id_card_back` varchar(1000) DEFAULT NULL COMMENT '身份证反面照',
  `head_photo` varchar(1000) DEFAULT NULL COMMENT '大头照',
  `driving_type` varchar(20) NOT NULL COMMENT '准驾车型',
  `driving_license_no` varchar(50) DEFAULT NULL COMMENT '驾驶证档案编号',
  `driving_license_start_date` date DEFAULT NULL COMMENT '驾驶证有效期起',
  `driving_license_end_date` date DEFAULT NULL COMMENT '驾驶证有效期止',
  `driving_license_long_term` int(11) DEFAULT '0' COMMENT '驾驶证长期有效：0否 1是',
  `driving_license_front` varchar(1000) DEFAULT NULL COMMENT '驾驶证主页',
  `driving_license_back` varchar(1000) DEFAULT NULL COMMENT '驾驶证副页',
  `qualification_type` varchar(50) DEFAULT NULL COMMENT '从业资格证类型',
  `qualification_no` varchar(50) DEFAULT NULL COMMENT '资格证号',
  `qualification_end_date` date DEFAULT NULL COMMENT '从业资格证有效期止',
  `qualification_long_term` int(11) DEFAULT '0' COMMENT '从业资格证长期有效：0否 1是',
  `qualification_front` varchar(1000) DEFAULT NULL COMMENT '从业资格证封面页',
  `qualification_back` varchar(1000) DEFAULT NULL COMMENT '从业资格证内容页',
  `driver_type` varchar(20) NOT NULL COMMENT '司机类型：自有/外协',
  `mobile` varchar(20) NOT NULL COMMENT '手机号',
  `contact_relation` varchar(20) DEFAULT NULL COMMENT '与联系人关系',
  `organization_name` varchar(50) NOT NULL COMMENT '所属组织',
  `emergency_contact_name` varchar(20) NOT NULL COMMENT '紧急联系人姓名',
  `emergency_contact_mobile` varchar(20) NOT 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,
  UNIQUE KEY `uk_transport_driver_id_card` (`id_card_no`) USING BTREE,
  KEY `idx_transport_driver_mobile` (`mobile`) USING BTREE,
  KEY `idx_transport_driver_type` (`driver_type`) USING BTREE,
  KEY `idx_transport_driver_org` (`organization_name`) USING BTREE,
  KEY `idx_transport_driver_license_end` (`driving_license_end_date`) USING BTREE,
  KEY `idx_transport_driver_qualification_end` (`qualification_end_date`) USING BTREE,
  KEY `idx_transport_driver_status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='司机管理';

-- ----------------------------
-- Records of blade_menu for transport capacity driver
-- ----------------------------
INSERT INTO `blade_menu` (`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `component`, `remark`, `is_deleted`) VALUES
(2079000000000000001, 0, 'transport_capacity', '运力管理', 'transport_capacity', '/transportCapacity', 'iconfont icon-yunshu', 20, 1, 0, 1, '', '', 0),
(2079000000000000002, 2079000000000000001, 'driver', '司机管理', 'driver', '/transportCapacity/driver', 'iconfont icon-yonghu', 1, 1, 0, 1, '', '', 0),
(2079000000000000003, 2079000000000000002, 'driver_add', '新增', 'driver_add', '', '', 1, 2, 0, 1, NULL, '', 0),
(2079000000000000004, 2079000000000000002, 'driver_edit', '编辑', 'driver_edit', '', '', 2, 2, 0, 1, NULL, '', 0),
(2079000000000000005, 2079000000000000002, 'driver_delete', '删除', 'driver_delete', '', '', 3, 2, 0, 1, NULL, '', 0),
(2079000000000000006, 2079000000000000002, 'driver_view', '查看', 'driver_view', '', '', 4, 2, 0, 1, NULL, '', 0),
(2079000000000000007, 2079000000000000002, 'driver_status', '启停', 'driver_status', '', '', 5, 2, 0, 1, NULL, '', 0),
(2079000000000000008, 2079000000000000002, 'driver_export', '批量导出', 'driver_export', '', '', 6, 2, 0, 1, NULL, '', 0);
