Files
tms-erp-api/doc/sql/transport/blade_transport_ship.sql
b2894lxlx 31c68a857a 1、调整币种汇率模块
2、新增保险记录模块
3、新增违章记录模块
4、新增换胎记录模块
5、新增事故记录模块
6、新增年检记录模块
7、新增里程记录模块
8、新增变更记录模块
9、新增油电记录模块
10、新增ETC记录模块
11、新增其他费用记录模块
2026-07-17 15:32:00 +08:00

71 lines
4.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ----------------------------
-- Table structure for blade_transport_ship
-- ----------------------------
DROP TABLE IF EXISTS `blade_transport_ship`;
CREATE TABLE `blade_transport_ship` (
`id` bigint(20) NOT NULL COMMENT '主键',
`tenant_id` varchar(12) DEFAULT '000000' COMMENT '租户ID',
`ship_name` varchar(50) NOT NULL COMMENT '船舶名',
`ship_identifier_no` varchar(50) NOT NULL COMMENT '船舶识别号',
`organization_name` varchar(50) NOT NULL COMMENT '所属组织',
`ship_inspection_no` varchar(50) DEFAULT NULL COMMENT '船检登记号',
`ship_type` varchar(50) NOT NULL COMMENT '船舶类型',
`nationality_cert_end_date` date DEFAULT NULL COMMENT '国籍证有效期至',
`nationality_cert_long_term` int(11) DEFAULT '0' COMMENT '国籍证长期有效0否 1是',
`nationality_cert_image` varchar(1000) DEFAULT NULL COMMENT '国籍证图片',
`safe_manning_cert_end_date` date DEFAULT NULL COMMENT '最低安全配员证书有效期至',
`safe_manning_cert_long_term` int(11) DEFAULT '0' COMMENT '最低安全配员证书长期有效0否 1是',
`safe_manning_cert_image` varchar(1000) DEFAULT NULL COMMENT '最低安全配员证书图片',
`business_transport_cert_end_date` date DEFAULT NULL COMMENT '营业运输证有效期至',
`business_transport_cert_long_term` int(11) DEFAULT '0' COMMENT '营业运输证长期有效0否 1是',
`business_transport_cert_image` varchar(1000) DEFAULT NULL COMMENT '营业运输证图片',
`lease_end_date` date DEFAULT NULL COMMENT '承租有效期至',
`lease_long_term` int(11) DEFAULT '0' COMMENT '承租长期有效0否 1是',
`lease_contract_image` 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,
UNIQUE KEY `uk_transport_ship_identifier` (`ship_identifier_no`) USING BTREE,
KEY `idx_transport_ship_name` (`ship_name`) USING BTREE,
KEY `idx_transport_ship_org` (`organization_name`) USING BTREE,
KEY `idx_transport_ship_type` (`ship_type`) USING BTREE,
KEY `idx_transport_ship_nationality_end` (`nationality_cert_end_date`) USING BTREE,
KEY `idx_transport_ship_safe_end` (`safe_manning_cert_end_date`) USING BTREE,
KEY `idx_transport_ship_business_end` (`business_transport_cert_end_date`) USING BTREE,
KEY `idx_transport_ship_lease_end` (`lease_end_date`) USING BTREE,
KEY `idx_transport_ship_status` (`status`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='船舶管理';
-- ----------------------------
-- Records of blade_menu for transport capacity ship
-- ----------------------------
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),
(2079000000000000020, 2079000000000000001, 'transport_ship', '船舶管理', 'transport_ship', '/transportCapacity/ship', 'iconfont icon-chuanbo', 3, 1, 0, 1, '', '', 0),
(2079000000000000021, 2079000000000000020, 'transport_ship_add', '新增', 'transport_ship_add', '', '', 1, 2, 0, 1, NULL, '', 0),
(2079000000000000022, 2079000000000000020, 'transport_ship_edit', '编辑', 'transport_ship_edit', '', '', 2, 2, 0, 1, NULL, '', 0),
(2079000000000000023, 2079000000000000020, 'transport_ship_delete', '删除', 'transport_ship_delete', '', '', 3, 2, 0, 1, NULL, '', 0),
(2079000000000000024, 2079000000000000020, 'transport_ship_view', '查看', 'transport_ship_view', '', '', 4, 2, 0, 1, NULL, '', 0),
(2079000000000000025, 2079000000000000020, 'transport_ship_status', '启停', 'transport_ship_status', '', '', 5, 2, 0, 1, NULL, '', 0),
(2079000000000000026, 2079000000000000020, 'transport_ship_export', '批量导出', 'transport_ship_export', '', '', 6, 2, 0, 1, NULL, '', 0)
ON DUPLICATE KEY UPDATE
`parent_id` = VALUES(`parent_id`),
`code` = VALUES(`code`),
`name` = VALUES(`name`),
`alias` = VALUES(`alias`),
`path` = VALUES(`path`),
`source` = VALUES(`source`),
`sort` = VALUES(`sort`),
`category` = VALUES(`category`),
`action` = VALUES(`action`),
`is_open` = VALUES(`is_open`),
`component` = VALUES(`component`),
`remark` = VALUES(`remark`),
`is_deleted` = VALUES(`is_deleted`);