From b44a108bc08cbbc272938b04cb515053fdf790de Mon Sep 17 00:00:00 2001 From: Louis <869322496@qq.com> Date: Mon, 26 Aug 2024 18:15:17 +0800 Subject: [PATCH] 1 --- init_data/sql/hxoa.sql | 792 +++++++++++++++++++++++------------------ 1 file changed, 446 insertions(+), 346 deletions(-) diff --git a/init_data/sql/hxoa.sql b/init_data/sql/hxoa.sql index 1edf3cd..f7fe50a 100644 --- a/init_data/sql/hxoa.sql +++ b/init_data/sql/hxoa.sql @@ -1,138 +1,185 @@ /* Navicat Premium Data Transfer - Source Server : localhost + Source Server : localhost_13307 Source Server Type : MySQL - Source Server Version : 80036 + Source Server Version : 80039 Source Host : localhost:13307 Source Schema : hxoa Target Server Type : MySQL - Target Server Version : 80036 + Target Server Version : 80039 File Encoding : 65001 - Date: 07/04/2024 11:11:06 + Date: 26/08/2024 18:14:59 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; +-- ---------------------------- +-- Table structure for baby_record +-- ---------------------------- +DROP TABLE IF EXISTS `baby_record`; +CREATE TABLE `baby_record` ( + `id` int(0) NOT NULL AUTO_INCREMENT, + `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + `action` tinyint(0) NOT NULL COMMENT '入库或出库', + `time` datetime(0) NULL DEFAULT NULL COMMENT '时间', + `quantity` int(0) NOT NULL DEFAULT 0 COMMENT '数量', + `agent` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经办人', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of baby_record +-- ---------------------------- +INSERT INTO `baby_record` VALUES (1, '2024-08-26 14:33:52.041414', '2024-08-26 14:33:52.041414', 0, '2024-08-26 14:33:01', 0, '33', '44', 0); +INSERT INTO `baby_record` VALUES (2, '2024-08-26 16:03:52.998320', '2024-08-26 16:03:52.998320', 0, '2024-08-26 16:03:53', 0, '33', '44', 0); +INSERT INTO `baby_record` VALUES (3, '2024-08-26 16:04:44.543534', '2024-08-26 16:04:44.543534', 0, '2024-08-26 16:04:45', 0, '33', '44', 0); +INSERT INTO `baby_record` VALUES (4, '2024-08-26 16:04:46.639969', '2024-08-26 16:04:46.639969', 0, '2024-08-26 16:04:47', 0, '33', '44', 0); +INSERT INTO `baby_record` VALUES (5, '2024-08-26 16:04:48.306072', '2024-08-26 16:04:48.306072', 0, '2024-08-26 16:04:48', 0, '33', '44', 0); +INSERT INTO `baby_record` VALUES (6, '2024-08-26 16:14:04.179068', '2024-08-26 16:14:04.179068', 0, '2024-08-26 16:14:04', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (7, '2024-08-26 16:14:15.956504', '2024-08-26 16:14:15.956504', 0, '2024-08-26 16:14:16', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (8, '2024-08-26 16:14:45.563780', '2024-08-26 16:14:45.563780', 0, '2024-08-26 16:14:46', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (9, '2024-08-26 16:14:48.455690', '2024-08-26 16:14:48.455690', 2, '2024-08-26 16:14:48', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (10, '2024-08-26 16:15:09.518320', '2024-08-26 16:15:09.518320', 3, '2024-08-26 16:15:10', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (11, '2024-08-26 16:15:41.328758', '2024-08-26 16:15:41.328758', 1, '2024-08-26 16:15:41', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (12, '2024-08-26 17:18:56.665633', '2024-08-26 17:18:56.665633', 2, '2024-08-26 17:18:57', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (13, '2024-08-26 17:21:01.637486', '2024-08-26 17:21:01.637486', 2, '2024-08-26 17:21:02', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (14, '2024-08-26 17:22:34.948015', '2024-08-26 17:22:34.948015', 2, '2024-08-26 17:22:35', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (15, '2024-08-26 17:22:52.113188', '2024-08-26 17:22:52.113188', 3, '2024-08-26 17:22:52', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (16, '2024-08-26 17:23:06.588530', '2024-08-26 17:23:06.588530', 1, '2024-08-26 17:23:07', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (17, '2024-08-26 17:23:37.371606', '2024-08-26 17:23:37.371606', 0, '2024-08-26 17:23:37', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (18, '2024-08-26 17:33:14.626727', '2024-08-26 17:33:14.626727', 1, '2024-08-26 17:33:15', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (19, '2024-08-26 17:33:17.289958', '2024-08-26 17:33:17.289958', 0, '2024-08-26 17:33:17', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (20, '2024-08-26 17:34:32.725712', '2024-08-26 17:34:32.725712', 0, '2024-08-26 17:34:33', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (21, '2024-08-26 17:34:48.907636', '2024-08-26 17:34:48.907636', 3, '2024-08-26 17:34:49', 0, NULL, NULL, 0); +INSERT INTO `baby_record` VALUES (22, '2024-08-26 17:34:55.596183', '2024-08-26 17:34:55.596183', 0, '2024-08-26 17:34:56', 0, NULL, NULL, 0); + -- ---------------------------- -- Table structure for company -- ---------------------------- DROP TABLE IF EXISTS `company`; CREATE TABLE `company` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司名称', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_a76c5cd486f7779bd9c319afd2`(`name`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of company -- ---------------------------- -INSERT INTO `company` VALUES (1, '2024-03-04 15:44:43.005593', '2024-03-08 08:48:37.000000', '深圳市立创电子商务有限公司', 0); -INSERT INTO `company` VALUES (4, '2024-03-04 16:05:34.701780', '2024-04-07 09:54:56.000000', '深圳市诚亨泰科技有限公司', 0); -INSERT INTO `company` VALUES (5, '2024-03-04 16:05:38.867786', '2024-03-04 16:05:38.867786', '东莞市顶源电子有限公司', 0); -INSERT INTO `company` VALUES (6, '2024-03-04 16:05:42.479027', '2024-03-04 16:05:42.479027', '深圳市福田区赛格电子市场金佳电子经营部', 0); -INSERT INTO `company` VALUES (7, '2024-03-04 16:05:46.775364', '2024-03-04 16:05:46.775364', '深圳市思界电子科技有限公司', 0); -INSERT INTO `company` VALUES (8, '2024-03-04 16:05:55.806537', '2024-03-04 16:05:55.806537', '广州市星翼电信科技有限公司', 0); -INSERT INTO `company` VALUES (9, '2024-03-04 16:06:03.003860', '2024-03-04 16:09:49.000000', '快递费', 1); -INSERT INTO `company` VALUES (10, '2024-03-04 16:06:09.788572', '2024-03-04 16:06:09.788572', '青岛丰喆精密模具有限公司', 0); -INSERT INTO `company` VALUES (11, '2024-03-04 16:06:12.872983', '2024-03-04 16:06:12.872983', '深圳嘉立创科技集团股份有限公司', 0); -INSERT INTO `company` VALUES (12, '2024-03-04 16:06:19.823410', '2024-03-04 16:06:19.823410', '北京特倍福电子技术有限公司', 0); -INSERT INTO `company` VALUES (13, '2024-03-04 16:06:25.937749', '2024-03-04 16:06:25.937749', '上海脉芯网络科技有限公司', 0); -INSERT INTO `company` VALUES (14, '2024-03-22 11:01:20.588144', '2024-03-22 11:01:20.588144', '深圳市声能达科技有限公司', 0); -INSERT INTO `company` VALUES (15, '2024-03-26 10:29:45.595059', '2024-03-26 10:29:45.595059', '深圳市新得润电子有限公司', 0); -INSERT INTO `company` VALUES (16, '2024-04-05 08:47:49.227114', '2024-04-05 08:47:49.227114', '山东矿机华信智能科技有限公司', 0); -INSERT INTO `company` VALUES (17, '2024-04-05 10:03:44.190698', '2024-04-05 10:03:44.190698', '广东润宇传感器股份有限公司', 0); -INSERT INTO `company` VALUES (18, '2024-04-05 15:21:21.989529', '2024-04-05 15:21:21.989529', '宝鸡兴宇腾测控设备有限公司', 0); +INSERT INTO `company` VALUES (1, '2024-03-04 15:44:43.005593', '2024-03-08 08:48:37.000000', '深圳市立创电子商务有限公司', 0, 1); +INSERT INTO `company` VALUES (4, '2024-03-04 16:05:34.701780', '2024-04-07 09:54:56.000000', '深圳市诚亨泰科技有限公司', 0, 1); +INSERT INTO `company` VALUES (5, '2024-03-04 16:05:38.867786', '2024-03-04 16:05:38.867786', '东莞市顶源电子有限公司', 0, 1); +INSERT INTO `company` VALUES (6, '2024-03-04 16:05:42.479027', '2024-03-04 16:05:42.479027', '深圳市福田区赛格电子市场金佳电子经营部', 0, 1); +INSERT INTO `company` VALUES (7, '2024-03-04 16:05:46.775364', '2024-03-04 16:05:46.775364', '深圳市思界电子科技有限公司', 0, 1); +INSERT INTO `company` VALUES (8, '2024-03-04 16:05:55.806537', '2024-03-04 16:05:55.806537', '广州市星翼电信科技有限公司', 0, 1); +INSERT INTO `company` VALUES (9, '2024-03-04 16:06:03.003860', '2024-03-04 16:09:49.000000', '快递费', 1, 1); +INSERT INTO `company` VALUES (10, '2024-03-04 16:06:09.788572', '2024-03-04 16:06:09.788572', '青岛丰喆精密模具有限公司', 0, 1); +INSERT INTO `company` VALUES (11, '2024-03-04 16:06:12.872983', '2024-03-04 16:06:12.872983', '深圳嘉立创科技集团股份有限公司', 0, 1); +INSERT INTO `company` VALUES (12, '2024-03-04 16:06:19.823410', '2024-03-04 16:06:19.823410', '北京特倍福电子技术有限公司', 0, 1); +INSERT INTO `company` VALUES (13, '2024-03-04 16:06:25.937749', '2024-03-04 16:06:25.937749', '上海脉芯网络科技有限公司', 0, 1); +INSERT INTO `company` VALUES (14, '2024-03-22 11:01:20.588144', '2024-03-22 11:01:20.588144', '深圳市声能达科技有限公司', 0, 1); +INSERT INTO `company` VALUES (15, '2024-03-26 10:29:45.595059', '2024-03-26 10:29:45.595059', '深圳市新得润电子有限公司', 0, 1); +INSERT INTO `company` VALUES (16, '2024-04-05 08:47:49.227114', '2024-04-05 08:47:49.227114', '山东矿机华信智能科技有限公司', 0, 1); +INSERT INTO `company` VALUES (17, '2024-04-05 10:03:44.190698', '2024-04-05 10:03:44.190698', '广东润宇传感器股份有限公司', 0, 1); +INSERT INTO `company` VALUES (18, '2024-04-05 15:21:21.989529', '2024-04-05 15:21:21.989529', '宝鸡兴宇腾测控设备有限公司', 0, 1); -- ---------------------------- -- Table structure for company_storage -- ---------------------------- DROP TABLE IF EXISTS `company_storage`; CREATE TABLE `company_storage` ( - `company_id` int NOT NULL, - `file_id` int NOT NULL, + `company_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`company_id`, `file_id`) USING BTREE, INDEX `IDX_0958ee6ca6f52985840624bb91`(`company_id`) USING BTREE, INDEX `IDX_bdd3a301229b9dec4b95549dfe`(`file_id`) USING BTREE, CONSTRAINT `FK_0958ee6ca6f52985840624bb916` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_bdd3a301229b9dec4b95549dfe7` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of company_storage --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for contract -- ---------------------------- DROP TABLE IF EXISTS `contract`; CREATE TABLE `contract` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `contract_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '合同编号', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '合同标题', - `type` int NOT NULL COMMENT '合同类型(字典)', + `type` int(0) NOT NULL COMMENT '合同类型(字典)', `party_a` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '甲方', `party_b` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '乙方', `signing_date` date NULL DEFAULT NULL, `delivery_deadline` date NULL DEFAULT NULL, - `status` tinyint NOT NULL DEFAULT 0 COMMENT '审核状态(字典)', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', + `status` tinyint(0) NOT NULL DEFAULT 0 COMMENT '审核状态(字典)', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_a2f8461960ce0fcbd0d6551009`(`contract_number`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of contract --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for contract_storage -- ---------------------------- DROP TABLE IF EXISTS `contract_storage`; CREATE TABLE `contract_storage` ( - `contract_id` int NOT NULL, - `file_id` int NOT NULL, + `contract_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`contract_id`, `file_id`) USING BTREE, INDEX `IDX_b0a3f22af56decbc128c674447`(`contract_id`) USING BTREE, INDEX `IDX_2fe7cda0f292b099b7e13f8f61`(`file_id`) USING BTREE, CONSTRAINT `FK_2fe7cda0f292b099b7e13f8f612` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_b0a3f22af56decbc128c674447e` FOREIGN KEY (`contract_id`) REFERENCES `contract` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- --- Records of contract_storage +-- Table structure for domain -- ---------------------------- +DROP TABLE IF EXISTS `domain`; +CREATE TABLE `domain` ( + `id` int(0) NOT NULL AUTO_INCREMENT, + `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '域标题', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for materials_in_out -- ---------------------------- DROP TABLE IF EXISTS `materials_in_out`; CREATE TABLE `materials_in_out` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `product_id` int NOT NULL COMMENT '产品', - `in_or_out` tinyint NOT NULL COMMENT '入库或出库', - `quantity` int NOT NULL DEFAULT 0 COMMENT '数量', + `product_id` int(0) NOT NULL COMMENT '产品', + `in_or_out` tinyint(0) NOT NULL COMMENT '入库或出库', + `quantity` int(0) NOT NULL DEFAULT 0 COMMENT '数量', `unit_price` decimal(15, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '单价', `amount` decimal(15, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '金额', `agent` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '经办人', `issuance_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '领料单号', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', `inventory_inout_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '原材料出入库编号', - `project_id` int NULL DEFAULT NULL COMMENT '项目', - `inventory_id` int NOT NULL COMMENT '库存', - `time` datetime NULL DEFAULT NULL COMMENT '时间', + `project_id` int(0) NULL DEFAULT NULL COMMENT '项目', + `inventory_id` int(0) NOT NULL COMMENT '库存', + `time` datetime(0) NULL DEFAULT NULL COMMENT '时间', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, INDEX `FK_770f1c4afd9631499ccc08bd58b`(`product_id`) USING BTREE, INDEX `FK_7a5bd19f8fd458f6336efedf765`(`project_id`) USING BTREE, @@ -140,186 +187,249 @@ CREATE TABLE `materials_in_out` ( CONSTRAINT `FK_770f1c4afd9631499ccc08bd58b` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_7a5bd19f8fd458f6336efedf765` FOREIGN KEY (`project_id`) REFERENCES `project` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_f5dc1f1e4db2f990ef89f0398fa` FOREIGN KEY (`inventory_id`) REFERENCES `materials_inventory` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 196 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 196 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of materials_in_out -- ---------------------------- -INSERT INTO `materials_in_out` VALUES (190, '2024-04-05 09:13:45.815541', '2024-04-05 09:13:45.000000', 36, 0, 100, 0.0000000000, 0.0000000000, '孟菲', NULL, '', 0, 'SI1017', 13, 68, NULL); -INSERT INTO `materials_in_out` VALUES (191, '2024-04-05 09:19:39.482730', '2024-04-05 09:19:39.000000', 35, 0, 100, 0.0000000000, 0.0000000000, '孟菲', NULL, '', 0, 'SI1018', 13, 69, NULL); -INSERT INTO `materials_in_out` VALUES (192, '2024-04-05 10:22:32.422926', '2024-04-05 10:22:32.000000', 37, 0, 83, 557.5200000000, 46274.1600000000, '孟菲', NULL, '', 0, 'SI1019', 13, 70, NULL); -INSERT INTO `materials_in_out` VALUES (193, '2024-04-05 14:58:36.121528', '2024-04-05 14:58:48.000000', 36, 0, 300, 0.0000000000, 0.0000000000, '王兴昊', NULL, NULL, 0, 'SI1020', 13, 68, NULL); -INSERT INTO `materials_in_out` VALUES (194, '2024-04-05 15:00:20.218109', '2024-04-05 15:00:20.218109', 35, 0, 300, 0.0000000000, 0.0000000000, '王兴昊', NULL, NULL, 0, 'SI1021', 13, 69, NULL); -INSERT INTO `materials_in_out` VALUES (195, '2024-04-05 15:26:13.804510', '2024-04-05 15:26:13.000000', 38, 0, 130, 0.0000000000, 0.0000000000, '王兴昊', NULL, '', 0, 'SI1022', 13, 71, NULL); +INSERT INTO `materials_in_out` VALUES (190, '2024-04-05 09:13:45.815541', '2024-04-05 09:13:45.000000', 36, 0, 100, 0.0000000000, 0.0000000000, '孟菲', NULL, '', 0, 'SI1017', 13, 68, NULL, 1); +INSERT INTO `materials_in_out` VALUES (191, '2024-04-05 09:19:39.482730', '2024-04-05 09:19:39.000000', 35, 0, 100, 0.0000000000, 0.0000000000, '孟菲', NULL, '', 0, 'SI1018', 13, 69, NULL, 1); +INSERT INTO `materials_in_out` VALUES (192, '2024-04-05 10:22:32.422926', '2024-04-05 10:22:32.000000', 37, 0, 83, 557.5200000000, 46274.1600000000, '孟菲', NULL, '', 0, 'SI1019', 13, 70, NULL, 1); +INSERT INTO `materials_in_out` VALUES (193, '2024-04-05 14:58:36.121528', '2024-04-05 14:58:48.000000', 36, 0, 300, 0.0000000000, 0.0000000000, '王兴昊', NULL, NULL, 0, 'SI1020', 13, 68, NULL, 1); +INSERT INTO `materials_in_out` VALUES (194, '2024-04-05 15:00:20.218109', '2024-04-05 15:00:20.218109', 35, 0, 300, 0.0000000000, 0.0000000000, '王兴昊', NULL, NULL, 0, 'SI1021', 13, 69, NULL, 1); +INSERT INTO `materials_in_out` VALUES (195, '2024-04-05 15:26:13.804510', '2024-04-05 15:26:13.000000', 38, 0, 130, 0.0000000000, 0.0000000000, '王兴昊', NULL, '', 0, 'SI1022', 13, 71, NULL, 1); -- ---------------------------- -- Table structure for materials_in_out_storage -- ---------------------------- DROP TABLE IF EXISTS `materials_in_out_storage`; CREATE TABLE `materials_in_out_storage` ( - `materials_in_out_id` int NOT NULL, - `file_id` int NOT NULL, + `materials_in_out_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`materials_in_out_id`, `file_id`) USING BTREE, INDEX `IDX_9df13ab4d4747575c310668581`(`materials_in_out_id`) USING BTREE, INDEX `IDX_96c00bfbcd71e93a6cc070e8e6`(`file_id`) USING BTREE, CONSTRAINT `FK_96c00bfbcd71e93a6cc070e8e6c` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_9df13ab4d4747575c3106685810` FOREIGN KEY (`materials_in_out_id`) REFERENCES `materials_in_out` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of materials_in_out_storage --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for materials_inventory -- ---------------------------- DROP TABLE IF EXISTS `materials_inventory`; CREATE TABLE `materials_inventory` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', - `product_id` int NOT NULL COMMENT '产品', - `quantity` int NOT NULL DEFAULT 0 COMMENT '库存产品数量', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + `product_id` int(0) NOT NULL COMMENT '产品', + `quantity` int(0) NOT NULL DEFAULT 0 COMMENT '库存产品数量', `unit_price` decimal(15, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '库存产品单价', - `project_id` int NOT NULL COMMENT '项目', + `project_id` int(0) NOT NULL COMMENT '项目', `position` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '库存位置', `inventory_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '库存编号', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, INDEX `FK_3915e159f03408035a62721d5be`(`project_id`) USING BTREE, INDEX `FK_413008d6a91b215b66971c9a9e8`(`product_id`) USING BTREE, CONSTRAINT `FK_3915e159f03408035a62721d5be` FOREIGN KEY (`project_id`) REFERENCES `project` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_413008d6a91b215b66971c9a9e8` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 72 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 72 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of materials_inventory -- ---------------------------- -INSERT INTO `materials_inventory` VALUES (68, '2024-04-05 09:13:45.802134', '2024-04-05 14:58:36.000000', NULL, 0, 36, 400, 0.0000000000, 13, '库房一, 第三排, 第二层', 'S1014'); -INSERT INTO `materials_inventory` VALUES (69, '2024-04-05 09:19:39.479124', '2024-04-05 15:00:20.000000', NULL, 0, 35, 400, 0.0000000000, 13, '库房一, 第三排, 第二层', 'S1015'); -INSERT INTO `materials_inventory` VALUES (70, '2024-04-05 10:22:32.418802', '2024-04-05 10:22:32.418802', NULL, 0, 37, 83, 557.5200000000, 13, NULL, 'S1016'); -INSERT INTO `materials_inventory` VALUES (71, '2024-04-05 15:26:13.800776', '2024-04-05 15:26:13.800776', NULL, 0, 38, 130, 0.0000000000, 13, NULL, 'S1017'); +INSERT INTO `materials_inventory` VALUES (68, '2024-04-05 09:13:45.802134', '2024-04-05 14:58:36.000000', NULL, 0, 36, 400, 0.0000000000, 13, '库房一, 第三排, 第二层', 'S1014', 1); +INSERT INTO `materials_inventory` VALUES (69, '2024-04-05 09:19:39.479124', '2024-04-05 15:00:20.000000', NULL, 0, 35, 400, 0.0000000000, 13, '库房一, 第三排, 第二层', 'S1015', 1); +INSERT INTO `materials_inventory` VALUES (70, '2024-04-05 10:22:32.418802', '2024-04-05 10:22:32.418802', NULL, 0, 37, 83, 557.5200000000, 13, NULL, 'S1016', 1); +INSERT INTO `materials_inventory` VALUES (71, '2024-04-05 15:26:13.800776', '2024-04-05 15:26:13.800776', NULL, 0, 38, 130, 0.0000000000, 13, NULL, 'S1017', 1); -- ---------------------------- -- Table structure for product -- ---------------------------- DROP TABLE IF EXISTS `product`; CREATE TABLE `product` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品名称', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', - `company_id` int NULL DEFAULT NULL COMMENT '所属公司', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + `company_id` int(0) NULL DEFAULT NULL COMMENT '所属公司', `name_pinyin` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品名称的拼音', - `unit_id` int NULL DEFAULT NULL COMMENT '单位(字典)', + `unit_id` int(0) NULL DEFAULT NULL COMMENT '单位(字典)', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', `product_specification` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品规格', `product_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品编号', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, INDEX `FK_a0503db1630a5b8a4d7deabd556`(`company_id`) USING BTREE, INDEX `FK_b15422982adca3bf53adfb535de`(`unit_id`) USING BTREE, CONSTRAINT `FK_a0503db1630a5b8a4d7deabd556` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_b15422982adca3bf53adfb535de` FOREIGN KEY (`unit_id`) REFERENCES `sys_dict_item` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of product -- ---------------------------- -INSERT INTO `product` VALUES (34, '2024-04-04 14:11:01.924609', '2024-04-04 14:11:01.924609', '网络型控制器按键保护板', 0, 1, 'wangluoxingkongzhiqianjianbaohuban', 15, '网络型控制器保护板', '283*15*4', 'P1027'); -INSERT INTO `product` VALUES (35, '2024-04-05 08:49:29.136458', '2024-04-05 08:49:29.136458', '急停基座', 0, 16, 'jitingjizuo', 15, 'ERP库存名急停端子', 'ZB2BZ102C', 'P1028'); -INSERT INTO `product` VALUES (36, '2024-04-05 08:57:45.214384', '2024-04-05 08:57:45.214384', '急停按钮', 0, 16, 'jitinganniu', 15, NULL, 'ZB2BT4C', 'P1029'); -INSERT INTO `product` VALUES (37, '2024-04-05 10:13:36.340912', '2024-04-05 10:13:36.340912', '传感器', 0, 17, 'chuanganqi', 14, NULL, 'GUC960-700mm', 'P1030'); -INSERT INTO `product` VALUES (38, '2024-04-05 15:21:41.040381', '2024-04-05 15:21:41.040381', '压力传感器', 0, 18, 'yalichuanganqi', 14, NULL, 'GPD60', 'P1031'); +INSERT INTO `product` VALUES (34, '2024-04-04 14:11:01.924609', '2024-04-04 14:11:01.924609', '网络型控制器按键保护板', 0, 1, 'wangluoxingkongzhiqianjianbaohuban', 15, '网络型控制器保护板', '283*15*4', 'P1027', 1); +INSERT INTO `product` VALUES (35, '2024-04-05 08:49:29.136458', '2024-04-05 08:49:29.136458', '急停基座', 0, 16, 'jitingjizuo', 15, 'ERP库存名急停端子', 'ZB2BZ102C', 'P1028', 1); +INSERT INTO `product` VALUES (36, '2024-04-05 08:57:45.214384', '2024-04-05 08:57:45.214384', '急停按钮', 0, 16, 'jitinganniu', 15, NULL, 'ZB2BT4C', 'P1029', 1); +INSERT INTO `product` VALUES (37, '2024-04-05 10:13:36.340912', '2024-04-05 10:13:36.340912', '传感器', 0, 17, 'chuanganqi', 14, NULL, 'GUC960-700mm', 'P1030', 1); +INSERT INTO `product` VALUES (38, '2024-04-05 15:21:41.040381', '2024-04-05 15:21:41.040381', '压力传感器', 0, 18, 'yalichuanganqi', 14, NULL, 'GPD60', 'P1031', 1); -- ---------------------------- -- Table structure for product_storage -- ---------------------------- DROP TABLE IF EXISTS `product_storage`; CREATE TABLE `product_storage` ( - `product_id` int NOT NULL, - `file_id` int NOT NULL, + `product_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`product_id`, `file_id`) USING BTREE, INDEX `IDX_6dd288598f0a0ea3f72f31cb42`(`product_id`) USING BTREE, INDEX `IDX_eecbd68d7d4d565baecee2d76c`(`file_id`) USING BTREE, CONSTRAINT `FK_6dd288598f0a0ea3f72f31cb422` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_eecbd68d7d4d565baecee2d76c7` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of product_storage --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for project -- ---------------------------- DROP TABLE IF EXISTS `project`; CREATE TABLE `project` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目名称', - `is_delete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_dedfea394088ed136ddadeee89`(`name`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of project -- ---------------------------- -INSERT INTO `project` VALUES (1, '2024-03-07 09:35:15.276345', '2024-03-08 08:48:21.000000', '星火项目', 0); -INSERT INTO `project` VALUES (2, '2024-03-07 09:35:20.004729', '2024-03-07 09:35:20.004729', '东大项目', 0); -INSERT INTO `project` VALUES (3, '2024-03-07 09:35:29.213057', '2024-03-07 09:35:29.213057', '沙湾煤业项目', 0); -INSERT INTO `project` VALUES (13, '2024-04-02 13:53:11.973237', '2024-04-04 14:15:15.000000', '未分类项目', 0); -INSERT INTO `project` VALUES (14, '2024-04-04 14:13:50.885496', '2024-04-04 14:13:50.885496', '七台河煤矿', 0); -INSERT INTO `project` VALUES (15, '2024-04-04 14:14:02.655982', '2024-04-04 14:14:02.655982', '红旗煤矿', 0); -INSERT INTO `project` VALUES (16, '2024-04-04 14:14:19.407108', '2024-04-04 14:14:19.407108', '首旺煤矿', 0); -INSERT INTO `project` VALUES (17, '2024-04-04 14:14:43.054552', '2024-04-04 14:14:43.054552', '沫凤项目', 0); +INSERT INTO `project` VALUES (1, '2024-03-07 09:35:15.276345', '2024-03-08 08:48:21.000000', '星火项目', 0, 1); +INSERT INTO `project` VALUES (2, '2024-03-07 09:35:20.004729', '2024-03-07 09:35:20.004729', '东大项目', 0, 1); +INSERT INTO `project` VALUES (3, '2024-03-07 09:35:29.213057', '2024-03-07 09:35:29.213057', '沙湾煤业项目', 0, 1); +INSERT INTO `project` VALUES (13, '2024-04-02 13:53:11.973237', '2024-04-04 14:15:15.000000', '未分类项目', 0, 1); +INSERT INTO `project` VALUES (14, '2024-04-04 14:13:50.885496', '2024-04-04 14:13:50.885496', '七台河煤矿', 0, 1); +INSERT INTO `project` VALUES (15, '2024-04-04 14:14:02.655982', '2024-04-04 14:14:02.655982', '红旗煤矿', 0, 1); +INSERT INTO `project` VALUES (16, '2024-04-04 14:14:19.407108', '2024-04-04 14:14:19.407108', '首旺煤矿', 0, 1); +INSERT INTO `project` VALUES (17, '2024-04-04 14:14:43.054552', '2024-04-04 14:14:43.054552', '沫凤项目', 0, 1); -- ---------------------------- -- Table structure for project_storage -- ---------------------------- DROP TABLE IF EXISTS `project_storage`; CREATE TABLE `project_storage` ( - `project_id` int NOT NULL, - `file_id` int NOT NULL, + `project_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`project_id`, `file_id`) USING BTREE, INDEX `IDX_9058e954f8f09e2cfa2261c1f2`(`project_id`) USING BTREE, INDEX `IDX_ac08ac8e4f973873f03dafaca2`(`file_id`) USING BTREE, CONSTRAINT `FK_9058e954f8f09e2cfa2261c1f26` FOREIGN KEY (`project_id`) REFERENCES `project` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_ac08ac8e4f973873f03dafaca2b` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- --- Records of project_storage +-- Table structure for sale_quotation_component -- ---------------------------- +DROP TABLE IF EXISTS `sale_quotation_component`; +CREATE TABLE `sale_quotation_component` ( + `id` int(0) NOT NULL AUTO_INCREMENT, + `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '报价配件名称', + `component_specification` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品规格', + `unit_id` int(0) NULL DEFAULT NULL COMMENT '单位(字典)', + `unit_price` decimal(15, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '单价', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + INDEX `FK_c72786ab8ebfa50d0c4d04dc849`(`unit_id`) USING BTREE, + CONSTRAINT `FK_c72786ab8ebfa50d0c4d04dc849` FOREIGN KEY (`unit_id`) REFERENCES `sys_dict_item` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for sale_quotation_component_storage +-- ---------------------------- +DROP TABLE IF EXISTS `sale_quotation_component_storage`; +CREATE TABLE `sale_quotation_component_storage` ( + `sale_quotation_component_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, + PRIMARY KEY (`sale_quotation_component_id`, `file_id`) USING BTREE, + INDEX `IDX_d0cec9d3031b742a2ed6d432aa`(`sale_quotation_component_id`) USING BTREE, + INDEX `IDX_a1f492fbfa21c87875d798f9cc`(`file_id`) USING BTREE, + CONSTRAINT `FK_a1f492fbfa21c87875d798f9ccf` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, + CONSTRAINT `FK_d0cec9d3031b742a2ed6d432aa5` FOREIGN KEY (`sale_quotation_component_id`) REFERENCES `sale_quotation_component` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for sale_quotation_group +-- ---------------------------- +DROP TABLE IF EXISTS `sale_quotation_group`; +CREATE TABLE `sale_quotation_group` ( + `id` int(0) NOT NULL AUTO_INCREMENT, + `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '报价分组名称', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `IDX_36b6e3b1403d41179974bd96c2`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for sale_quotation_group_component +-- ---------------------------- +DROP TABLE IF EXISTS `sale_quotation_group_component`; +CREATE TABLE `sale_quotation_group_component` ( + `group_id` int(0) NOT NULL, + `component_id` int(0) NOT NULL, + PRIMARY KEY (`group_id`, `component_id`) USING BTREE, + INDEX `IDX_77eedaa2f083d9dfd78b888642`(`group_id`) USING BTREE, + INDEX `IDX_383f9e30f008e42701a7187d88`(`component_id`) USING BTREE, + CONSTRAINT `FK_383f9e30f008e42701a7187d880` FOREIGN KEY (`component_id`) REFERENCES `sale_quotation_component` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, + CONSTRAINT `FK_77eedaa2f083d9dfd78b888642a` FOREIGN KEY (`group_id`) REFERENCES `sale_quotation_group` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for sale_quotation_template +-- ---------------------------- +DROP TABLE IF EXISTS `sale_quotation_template`; +CREATE TABLE `sale_quotation_template` ( + `id` int(0) NOT NULL AUTO_INCREMENT, + `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '报价模板名称', + `template` json NULL COMMENT '报价模板', + `is_delete` tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `IDX_d92d8a344eb4b47500ab96f7f3`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for sys_captcha_log -- ---------------------------- DROP TABLE IF EXISTS `sys_captcha_log`; CREATE TABLE `sys_captcha_log` ( - `id` int NOT NULL AUTO_INCREMENT, - `user_id` int NULL DEFAULT NULL, + `id` int(0) NOT NULL AUTO_INCREMENT, + `user_id` int(0) NULL DEFAULT NULL, `account` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL, `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL, `provider` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of sys_captcha_log --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for sys_config -- ---------------------------- DROP TABLE IF EXISTS `sys_config`; CREATE TABLE `sys_config` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, @@ -328,7 +438,7 @@ CREATE TABLE `sys_config` ( `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_2c363c25cf99bcaab3a7f389ba`(`key`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_config @@ -348,17 +458,17 @@ INSERT INTO `sys_config` VALUES (9, 'is_app_force_upgrade', 'app是否强制更 -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, - `orderNo` int NULL DEFAULT 0, + `orderNo` int(0) NULL DEFAULT 0, `mpath` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '', - `parentId` int NULL DEFAULT NULL, + `parentId` int(0) NULL DEFAULT NULL, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, INDEX `FK_c75280b01c49779f2323536db67`(`parentId`) USING BTREE, CONSTRAINT `FK_c75280b01c49779f2323536db67` FOREIGN KEY (`parentId`) REFERENCES `sys_dept` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_dept @@ -373,44 +483,40 @@ INSERT INTO `sys_dept` VALUES (11, '计算机开发部', 0, '10.11.', 10, '2024- -- ---------------------------- DROP TABLE IF EXISTS `sys_dict`; CREATE TABLE `sys_dict` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `create_by` int NOT NULL COMMENT '创建者', - `update_by` int NOT NULL COMMENT '更新者', + `create_by` int(0) NOT NULL COMMENT '创建者', + `update_by` int(0) NOT NULL COMMENT '更新者', `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NOT NULL DEFAULT 1, + `status` tinyint(0) NOT NULL DEFAULT 1, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_d112365748f740ee260b65ce91`(`name`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of sys_dict --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for sys_dict_item -- ---------------------------- DROP TABLE IF EXISTS `sys_dict_item`; CREATE TABLE `sys_dict_item` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `create_by` int NOT NULL COMMENT '创建者', - `update_by` int NOT NULL COMMENT '更新者', + `create_by` int(0) NOT NULL COMMENT '创建者', + `update_by` int(0) NOT NULL COMMENT '更新者', `label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `order` int NULL DEFAULT NULL COMMENT '字典项排序', - `status` tinyint NOT NULL DEFAULT 1, + `order` int(0) NULL DEFAULT NULL COMMENT '字典项排序', + `status` tinyint(0) NOT NULL DEFAULT 1, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `type_id` int NULL DEFAULT NULL, - `orderNo` int NULL DEFAULT NULL COMMENT '字典项排序', + `type_id` int(0) NULL DEFAULT NULL, + `orderNo` int(0) NULL DEFAULT NULL COMMENT '字典项排序', `deleted_at` datetime(6) NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, INDEX `FK_d68ea74fcb041c8cfd1fd659844`(`type_id`) USING BTREE, CONSTRAINT `FK_d68ea74fcb041c8cfd1fd659844` FOREIGN KEY (`type_id`) REFERENCES `sys_dict_type` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 49 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 49 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_dict_item @@ -465,19 +571,19 @@ INSERT INTO `sys_dict_item` VALUES (48, '2024-04-02 15:01:53.004626', '2024-04-0 -- ---------------------------- DROP TABLE IF EXISTS `sys_dict_type`; CREATE TABLE `sys_dict_type` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `create_by` int NOT NULL COMMENT '创建者', - `update_by` int NOT NULL COMMENT '更新者', + `create_by` int(0) NOT NULL COMMENT '创建者', + `update_by` int(0) NOT NULL COMMENT '更新者', `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NOT NULL DEFAULT 1, + `status` tinyint(0) NOT NULL DEFAULT 1, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `deleted_at` datetime(6) NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_74d0045ff7fab9f67adc0b1bda`(`code`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_dict_type @@ -497,18 +603,18 @@ INSERT INTO `sys_dict_type` VALUES (10, '2024-04-02 12:25:40.233758', '2024-04-0 -- ---------------------------- DROP TABLE IF EXISTS `sys_login_log`; CREATE TABLE `sys_login_log` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `ua` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `user_id` int NULL DEFAULT NULL, + `user_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `FK_3029712e0df6a28edaee46fd470`(`user_id`) USING BTREE, CONSTRAINT `FK_3029712e0df6a28edaee46fd470` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 72 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_login_log @@ -584,173 +690,175 @@ INSERT INTO `sys_login_log` VALUES (68, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10 INSERT INTO `sys_login_log` VALUES (69, '127.0.0.1', 'Dart/3.2 (dart:io)', '内网IP', NULL, '2024-04-07 11:00:39.570222', '2024-04-07 11:00:39.570222', 9); INSERT INTO `sys_login_log` VALUES (70, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0', '内网IP', NULL, '2024-04-07 11:01:59.666647', '2024-04-07 11:01:59.666647', 1); INSERT INTO `sys_login_log` VALUES (71, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0', '内网IP', NULL, '2024-04-07 11:07:30.060388', '2024-04-07 11:07:30.060388', 1); +INSERT INTO `sys_login_log` VALUES (72, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0', '内网IP', NULL, '2024-08-26 14:04:19.757610', '2024-08-26 14:04:19.757610', 1); -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( - `id` int NOT NULL AUTO_INCREMENT, - `parent_id` int NULL DEFAULT NULL, - `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `id` int(0) NOT NULL AUTO_INCREMENT, + `parent_id` int(0) NULL DEFAULT NULL COMMENT '父级ID', + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前端路径', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `type` tinyint NOT NULL DEFAULT 0, - `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '', - `order_no` int NULL DEFAULT 0, - `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `keep_alive` tinyint NOT NULL DEFAULT 1, - `show` tinyint NOT NULL DEFAULT 1, - `status` tinyint NOT NULL DEFAULT 1, + `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限', + `type` tinyint(0) NOT NULL DEFAULT 0 COMMENT '类型:0-目录 1-菜单 2-权限', + `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '图标', + `order_no` int(0) NULL DEFAULT 0, + `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前端组件文件地址', + `keep_alive` tinyint(0) NOT NULL DEFAULT 1, + `show` tinyint(0) NOT NULL DEFAULT 1, + `status` tinyint(0) NOT NULL DEFAULT 1, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `is_ext` tinyint NOT NULL DEFAULT 0, - `ext_open_mode` tinyint NOT NULL DEFAULT 1, + `is_ext` tinyint(0) NOT NULL DEFAULT 0, + `ext_open_mode` tinyint(0) NOT NULL DEFAULT 1, `active_menu` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `device` tinyint(0) NOT NULL DEFAULT 1 COMMENT '用户端类型:0-APP 1-PC', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 167 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 167 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_menu -- ---------------------------- -INSERT INTO `sys_menu` VALUES (1, NULL, '/system', '系统管理', '', 0, 'ant-design:setting-outlined', 254, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-29 10:41:29.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (2, 1, '/system/user', '用户管理', 'system:user:list', 1, 'ant-design:user-outlined', 0, 'system/user/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:10:30.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (3, 1, '/system/role', '角色管理', 'system:role:list', 1, 'ep:user', 1, 'system/role/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:02.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (4, 1, '/system/menu', '菜单管理', 'system:menu:list', 1, 'ep:menu', 2, 'system/menu/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:18.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (5, 1, '/system/monitor', '系统监控', '', 0, 'ep:monitor', 5, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-04-02 15:00:20.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (6, 5, '/system/monitor/online', '在线用户', 'system:online:list', 1, '', 0, 'system/monitor/online/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:13:59.519267', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (7, 5, '/sys/monitor/login-log', '登录日志', 'system:log:login:list', 1, '', 0, 'system/monitor/log/login/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:14:02.610719', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (8, 5, '/system/monitor/serve', '服务监控', 'system:serve:stat', 1, '', 4, 'system/monitor/serve/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:14:05.606355', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (9, 1, '/system/schedule', '任务调度', '', 0, 'ant-design:schedule-filled', 6, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-04-02 15:00:23.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (10, 9, '/system/task', '任务管理', '', 1, '', 0, 'system/schedule/task/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:14:39.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (11, 9, '/system/task/log', '任务日志', 'system:task:list', 1, '', 0, 'system/schedule/log/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:15:01.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (12, NULL, '/document', '文档', '', 0, 'ion:tv-outline', 2, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-02-28 11:51:51.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (14, 12, 'https://www.typeorm.org/', 'Typeorm中文文档(外链)', NULL, 1, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-30 18:39:53.000000', 1, 1, NULL); -INSERT INTO `sys_menu` VALUES (15, 12, 'https://docs.nestjs.cn/', 'Nest.js中文文档(内嵌)', '', 1, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-30 18:40:43.000000', 1, 2, NULL); -INSERT INTO `sys_menu` VALUES (20, 2, NULL, '新增', 'system:user:create', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (21, 2, '', '删除', 'system:user:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (22, 2, '', '更新', 'system:user:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (23, 2, '', '查询', 'system:user:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (24, 3, '', '新增', 'system:role:create', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (25, 3, '', '删除', 'system:role:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (26, 3, '', '修改', 'system:role:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (27, 3, '', '查询', 'system:role:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (28, 4, NULL, '新增', 'system:menu:create', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (29, 4, NULL, '删除', 'system:menu:delete', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (30, 4, '', '修改', 'system:menu:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (31, 4, NULL, '查询', 'system:menu:read', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (32, 6, '', '下线', 'system:online:kick', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (34, 10, '', '新增', 'system:task:create', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (35, 10, '', '删除', 'system:task:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (36, 10, '', '执行一次', 'system:task:once', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (37, 10, '', '查询', 'system:task:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (38, 10, '', '运行', 'system:task:start', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (39, 10, '', '暂停', 'system:task:stop', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (40, 10, '', '更新', 'system:task:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (41, 7, '', '查询登录日志', 'system:log:login:list', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (42, 7, '', '查询任务日志', 'system:log:task:list', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (43, NULL, '/about', '关于', '', 1, 'ant-design:info-circle-outlined', 260, 'account/about', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-10 09:35:41.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (48, NULL, '/tool', '系统工具', NULL, 0, 'ant-design:tool-outlined', 255, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-29 10:41:25.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (49, 48, '/tool/email', '邮件工具', 'system:tools:email', 1, 'ant-design:send-outlined', 1, 'tool/email/index', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-02-28 11:51:38.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (50, 49, NULL, '发送邮件', 'tools:email:send', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (51, 48, '/tool/storage', '本地存储管理', 'tool:storage:list', 1, 'ant-design:appstore-outlined', 2, 'tool/storage/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-03-08 15:13:32.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (52, 51, NULL, '文件上传', 'upload:upload', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-25 01:04:08.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (53, 51, NULL, '文件删除', 'tool:storage:delete', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-25 00:56:01.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (54, 2, NULL, '修改密码', 'system:user:password', 2, '', 5, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (56, 1, '/system/dict-type', '字典管理', 'system:dict-type:list', 1, 'ant-design:book-outlined', 4, 'system/dict-type/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:12.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (57, 56, NULL, '新增', 'system:dict-type:create', 2, '', 1, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:20.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (58, 56, NULL, '更新', 'system:dict-type:update', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:26.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (59, 56, NULL, '删除', 'system:dict-type:delete', 2, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:42.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (60, 56, NULL, '查询', 'system:dict-type:info', 2, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:36.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (61, 1, '/system/dept', '部门管理', 'system:dept:list', 1, 'ant-design:deployment-unit-outlined', 3, 'system/dept/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:55.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (62, 61, NULL, '新增', 'system:dept:create', 2, '', 1, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (63, 61, NULL, '更新', 'system:dept:update', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (64, 61, NULL, '删除', 'system:dept:delete', 2, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (65, 61, NULL, '查询', 'system:dept:read', 2, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (68, 5, '/health', '健康检查', '', 1, '', 4, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-01-27 18:53:33.352155', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (69, 68, NULL, '网络', 'app:health:network', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (70, 68, NULL, '数据库', 'app:health: database', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (86, 1, '/param-config', '参数配置', 'system:param-config:list', 1, 'ep:edit', 255, 'system/param-config/index', 0, 1, 1, '2024-01-10 17:34:52.569663', '2024-01-19 02:11:27.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (87, 86, NULL, '查询', 'system:param-config:read', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:39:20.983241', '2024-01-10 17:39:20.983241', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (88, 86, NULL, '新增', 'system:param-config:create', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:39:57.543510', '2024-01-10 17:39:57.543510', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (89, 86, NULL, '更新', 'system:param-config:update', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:40:27.355944', '2024-01-10 17:40:27.355944', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (92, 86, NULL, '删除', 'system:param-config:delete', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:57:32.059887', '2024-01-10 17:57:32.059887', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (107, 1, 'system/dict-item/:id', '字典项管理', 'system:dict-item:list', 1, 'ant-design:facebook-outlined', 255, 'system/dict-item/index', 0, 0, 1, '2024-01-28 09:21:17.409532', '2024-01-30 13:09:47.000000', 0, 1, '字典管理'); -INSERT INTO `sys_menu` VALUES (108, 107, NULL, '新增', 'system:dict-item:create', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:22:39.401758', '2024-01-28 22:38:36.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (109, 107, NULL, '更新', 'system:dict-item:update', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:26:43.911886', '2024-01-28 09:26:43.911886', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (110, 107, NULL, '删除', 'system:dict-item:delete', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:27:28.535225', '2024-01-28 09:27:28.535225', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (111, 107, NULL, '查询', 'system:dict-item:info', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:27:43.894820', '2024-01-28 09:27:43.894820', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (112, 12, 'https://antdv.com/components/overview-cn', 'antdv文档(内嵌)', NULL, 1, '', 255, NULL, 1, 1, 1, '2024-01-29 09:23:08.407723', '2024-01-30 18:41:19.000000', 1, 2, NULL); -INSERT INTO `sys_menu` VALUES (115, NULL, 'netdisk', '网盘管理', NULL, 0, 'ant-design:cloud-server-outlined', 255, NULL, 1, 0, 1, '2024-02-10 08:00:02.394616', '2024-03-08 15:14:06.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (116, 48, 'manage', '云盘管理', 'netdisk:manage:list', 1, 'ant-design:cloud-server-outlined', 252, 'netdisk/manage', 0, 0, 1, '2024-02-10 08:03:49.837348', '2024-04-07 10:29:44.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (117, 116, NULL, '创建文件或文件夹', 'netdisk:manage:create', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:40:22.317257', '2024-02-10 08:40:22.317257', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (118, 116, NULL, '查看文件', 'netdisk:manage:read', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:41:22.008015', '2024-02-10 08:41:22.008015', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (119, 116, NULL, '更新', 'netdisk:manage:update', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:41:50.691643', '2024-02-10 08:41:50.691643', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (120, 116, NULL, '删除', 'netdisk:manage:delete', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:42:09.480601', '2024-02-10 08:42:09.480601', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (121, 116, NULL, '获取文件上传token', 'netdisk:manage:token', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:42:57.688104', '2024-02-10 08:42:57.688104', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (122, 116, NULL, '添加文件备注', 'netdisk:manage:mark', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:43:40.117321', '2024-02-10 08:43:40.117321', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (123, 116, NULL, '下载文件', 'netdisk:manage:download', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:01.338984', '2024-02-10 08:44:01.338984', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (124, 116, NULL, '重命名文件或文件夹', 'netdisk:manage:rename', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:27.233379', '2024-02-10 08:45:36.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (125, 116, NULL, '复制文件或文件夹', 'netdisk:manage:copy', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:44.725391', '2024-02-10 08:45:48.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (126, 116, NULL, '剪切文件或文件夹', 'netdisk:manage:cut', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:45:21.660511', '2024-02-10 08:45:21.660511', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (127, 115, 'overview', '网盘概览', 'netdisk:overview:desc', 1, '', 254, 'netdisk/overview', 0, 1, 1, '2024-02-10 09:32:56.981190', '2024-02-10 09:34:18.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (128, NULL, '/contract', '合同管理', NULL, 0, 'ep:document', 1, NULL, 1, 0, 1, '2024-02-29 10:40:39.080419', '2024-04-02 14:52:28.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (129, 128, '/contract/index', '合同审核', 'app:contract:list', 1, 'ep:document', 1, 'contract/index', 0, 1, 1, '2024-02-29 10:46:09.245521', '2024-02-29 14:59:56.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (130, NULL, '/vehicle-usage/index', '车辆使用', NULL, 1, 'ant-design:car-outlined', 4, 'vehicle-usage/index', 0, 0, 1, '2024-02-29 10:48:35.035363', '2024-04-02 14:53:14.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (131, NULL, '/materials-inventory/record-in-out', '出入库记录', 'materials_inventory:history_in_out:list', 1, 'ep:coin', 3, 'materials-inventory/in-out/index', 0, 1, 1, '2024-02-29 11:03:49.710130', '2024-04-02 14:52:54.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (132, 129, NULL, '更新', 'app:contract:update', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:00:39.641043', '2024-02-29 15:00:39.641043', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (133, 129, NULL, '删除', 'app:contract:delete', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:00:59.376071', '2024-02-29 15:00:59.376071', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (134, 129, NULL, '查询', 'app:contract:read', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:01:14.209396', '2024-02-29 15:45:29.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (135, 129, NULL, '新增', 'app:contract:create', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:44:46.950582', '2024-02-29 15:44:46.950582', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (136, 131, NULL, '新增', 'materials_inventory:history_in_out:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:02.597782', '2024-03-06 10:54:28.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (137, 131, NULL, '更新', 'materials_inventory:history_in_out:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:15.192910', '2024-03-06 10:54:57.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (138, 131, NULL, '查询单个', 'app:contract:read', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:32.488892', '2024-03-01 17:17:32.488892', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (139, 131, NULL, '删除', 'materials_inventory:history_in_out:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:43.455773', '2024-03-06 10:55:06.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (140, NULL, '/materials-inventory/company', '乙方公司管理', 'app:company:list', 1, 'ep:office-building', 6, 'materials-inventory/company/index', 0, 1, 1, '2024-03-04 15:44:30.769048', '2024-03-27 12:57:31.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (141, 140, NULL, '单个查询', 'app:company:read', 2, '', 1, NULL, 1, 1, 1, '2024-03-04 15:45:55.979802', '2024-03-04 15:45:55.979802', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (142, 140, NULL, '新增', 'app:company:create', 2, '', 2, NULL, 1, 1, 1, '2024-03-04 15:46:11.260636', '2024-03-04 15:46:11.260636', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (143, 140, NULL, '更新', 'app:company:update', 2, '', 3, NULL, 1, 1, 1, '2024-03-04 15:46:25.098204', '2024-03-04 15:46:25.098204', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (144, 140, NULL, '删除', 'app:company:delete', 2, '', 4, NULL, 1, 1, 1, '2024-03-04 15:46:50.812446', '2024-03-04 15:46:50.812446', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (145, NULL, '/materials-inventory/product', '产品目录', 'app:product:list', 1, 'ant-design:product-outlined', 6, 'materials-inventory/product/index', 0, 1, 1, '2024-03-04 16:43:22.749281', '2024-03-27 12:56:52.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (146, 145, NULL, '单个查询', 'app:product:read', 2, '', 1, NULL, 1, 1, 1, '2024-03-04 16:44:56.482508', '2024-03-04 16:44:56.482508', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (147, 145, NULL, '新增', 'app:product:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:08.211188', '2024-03-04 16:45:08.211188', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (148, 145, NULL, '更新', 'app:product:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:25.457903', '2024-03-04 16:45:25.457903', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (149, 145, NULL, '删除', 'app:product:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:39.352621', '2024-03-04 16:45:39.352621', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (150, NULL, '/materials-inventory', '原材料盘点', NULL, 0, 'ant-design:dashboard-outlined', 3, NULL, 1, 0, 1, '2024-03-04 16:53:32.172674', '2024-04-02 14:52:58.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (151, 131, NULL, '导出', 'materials_inventory:history_in_out:export', 2, '', 5, NULL, 1, 1, 1, '2024-03-06 13:09:39.201093', '2024-03-06 13:09:39.201093', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (152, NULL, '/materials-inventory/inventory-check', '原材料库存管理', 'app:materials_inventory:list', 1, 'ant-design:dashboard-outlined', 2, 'materials-inventory/inventory-check/index', 1, 1, 1, '2024-03-06 13:33:24.795599', '2024-04-02 14:52:48.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (153, NULL, '/materials-inventory/project', '项目管理', 'app:project:list', 1, 'ep:memo', 4, 'materials-inventory/project/index', 0, 1, 1, '2024-03-07 09:28:19.234454', '2024-03-27 12:57:13.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (154, 153, NULL, '新增', 'app:project:create', 2, '', 1, NULL, 1, 1, 1, '2024-03-07 09:28:47.855064', '2024-03-07 09:28:47.855064', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (155, 153, NULL, '更新', 'app:project:update', 2, '', 2, NULL, 1, 1, 1, '2024-03-07 09:29:03.183084', '2024-03-07 09:29:03.183084', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (156, 153, NULL, '删除', 'app:project:delete', 2, '', 3, NULL, 1, 1, 1, '2024-03-07 09:29:16.684943', '2024-03-07 09:29:16.684943', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (157, 153, NULL, '单个信息', 'app:project:read', 2, '', 4, NULL, 1, 1, 1, '2024-03-07 09:29:33.424578', '2024-03-07 09:29:33.424578', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (158, 131, NULL, '导出原材料盘点表', 'app:materials_inventory:export', 2, '', 255, NULL, 1, 1, 0, '2024-03-07 11:46:54.468400', '2024-04-07 11:02:41.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (159, 130, NULL, '更新', 'app:vehicle_usage:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:04.324327', '2024-03-07 17:05:04.324327', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (160, 130, NULL, '删除', 'app:vehicle_usage:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:13.776313', '2024-03-07 17:05:13.776313', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (161, 130, NULL, '新增', 'app:vehicle_usage:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:25.081691', '2024-03-07 17:05:25.081691', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (162, 130, NULL, '单个信息', 'app:vehicle_usage:read', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:48.310497', '2024-03-07 17:05:48.310497', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (163, 152, NULL, '导出', 'app:materials_inventory:export', 2, '', 255, NULL, 1, 1, 0, '2024-03-11 13:43:41.135585', '2024-04-07 11:02:08.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (164, 152, NULL, '更新', 'app:materials_inventory:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-11 13:44:23.144410', '2024-03-11 13:44:23.144410', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (165, 152, NULL, '删除', 'app:materials_inventory:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-11 13:44:47.383396', '2024-03-11 13:44:47.383396', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (166, 128, '/contract/task', '任务管控', NULL, 1, 'ant-design:align-left-outlined', 255, 'task/index', 0, 1, 1, '2024-03-12 10:18:54.645756', '2024-03-12 10:18:54.645756', 0, 1, NULL); +INSERT INTO `sys_menu` VALUES (1, NULL, '/system', '系统管理', '', 0, 'ant-design:setting-outlined', 254, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-29 10:41:29.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (2, 1, '/system/user', '用户管理', 'system:user:list', 1, 'ant-design:user-outlined', 0, 'system/user/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:10:30.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (3, 1, '/system/role', '角色管理', 'system:role:list', 1, 'ep:user', 1, 'system/role/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:02.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (4, 1, '/system/menu', '菜单管理', 'system:menu:list', 1, 'ep:menu', 2, 'system/menu/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:18.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (5, 1, '/system/monitor', '系统监控', '', 0, 'ep:monitor', 5, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-04-02 15:00:20.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (6, 5, '/system/monitor/online', '在线用户', 'system:online:list', 1, '', 0, 'system/monitor/online/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:13:59.519267', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (7, 5, '/sys/monitor/login-log', '登录日志', 'system:log:login:list', 1, '', 0, 'system/monitor/log/login/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:14:02.610719', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (8, 5, '/system/monitor/serve', '服务监控', 'system:serve:stat', 1, '', 4, 'system/monitor/serve/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-15 22:14:05.606355', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (9, 1, '/system/schedule', '任务调度', '', 0, 'ant-design:schedule-filled', 6, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-04-02 15:00:23.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (10, 9, '/system/task', '任务管理', '', 1, '', 0, 'system/schedule/task/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:14:39.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (11, 9, '/system/task/log', '任务日志', 'system:task:list', 1, '', 0, 'system/schedule/log/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:15:01.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (12, NULL, '/document', '文档', '', 0, 'ion:tv-outline', 2, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-02-28 11:51:51.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (14, 12, 'https://www.typeorm.org/', 'Typeorm中文文档(外链)', NULL, 1, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-30 18:39:53.000000', 1, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (15, 12, 'https://docs.nestjs.cn/', 'Nest.js中文文档(内嵌)', '', 1, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-30 18:40:43.000000', 1, 2, NULL, 1); +INSERT INTO `sys_menu` VALUES (20, 2, NULL, '新增', 'system:user:create', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (21, 2, '', '删除', 'system:user:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (22, 2, '', '更新', 'system:user:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (23, 2, '', '查询', 'system:user:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (24, 3, '', '新增', 'system:role:create', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (25, 3, '', '删除', 'system:role:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (26, 3, '', '修改', 'system:role:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (27, 3, '', '查询', 'system:role:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (28, 4, NULL, '新增', 'system:menu:create', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (29, 4, NULL, '删除', 'system:menu:delete', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (30, 4, '', '修改', 'system:menu:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (31, 4, NULL, '查询', 'system:menu:read', 2, NULL, 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (32, 6, '', '下线', 'system:online:kick', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (34, 10, '', '新增', 'system:task:create', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (35, 10, '', '删除', 'system:task:delete', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (36, 10, '', '执行一次', 'system:task:once', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (37, 10, '', '查询', 'system:task:read', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (38, 10, '', '运行', 'system:task:start', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (39, 10, '', '暂停', 'system:task:stop', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (40, 10, '', '更新', 'system:task:update', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (41, 7, '', '查询登录日志', 'system:log:login:list', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (42, 7, '', '查询任务日志', 'system:log:task:list', 2, '', 0, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (43, NULL, '/about', '关于', '', 1, 'ant-design:info-circle-outlined', 260, 'account/about', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-10 09:35:41.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (48, NULL, '/tool', '系统工具', NULL, 0, 'ant-design:tool-outlined', 255, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-02-29 10:41:25.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (49, 48, '/tool/email', '邮件工具', 'system:tools:email', 1, 'ant-design:send-outlined', 1, 'tool/email/index', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-02-28 11:51:38.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (50, 49, NULL, '发送邮件', 'tools:email:send', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (51, 48, '/tool/storage', '本地存储管理', 'tool:storage:list', 1, 'ant-design:appstore-outlined', 2, 'tool/storage/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-03-08 15:13:32.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (52, 51, NULL, '文件上传', 'upload:upload', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-25 01:04:08.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (53, 51, NULL, '文件删除', 'tool:storage:delete', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-25 00:56:01.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (54, 2, NULL, '修改密码', 'system:user:password', 2, '', 5, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (56, 1, '/system/dict-type', '字典管理', 'system:dict-type:list', 1, 'ant-design:book-outlined', 4, 'system/dict-type/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:12.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (57, 56, NULL, '新增', 'system:dict-type:create', 2, '', 1, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:20.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (58, 56, NULL, '更新', 'system:dict-type:update', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:26.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (59, 56, NULL, '删除', 'system:dict-type:delete', 2, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:42.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (60, 56, NULL, '查询', 'system:dict-type:info', 2, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-28 09:07:36.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (61, 1, '/system/dept', '部门管理', 'system:dept:list', 1, 'ant-design:deployment-unit-outlined', 3, 'system/dept/index', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-17 03:11:55.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (62, 61, NULL, '新增', 'system:dept:create', 2, '', 1, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (63, 61, NULL, '更新', 'system:dept:update', 2, '', 2, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (64, 61, NULL, '删除', 'system:dept:delete', 2, '', 3, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (65, 61, NULL, '查询', 'system:dept:read', 2, '', 4, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (68, 5, '/health', '健康检查', '', 1, '', 4, '', 1, 0, 1, '2023-11-10 00:31:44.023393', '2024-01-27 18:53:33.352155', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (69, 68, NULL, '网络', 'app:health:network', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (70, 68, NULL, '数据库', 'app:health: database', 2, '', 0, NULL, 1, 1, 1, '2023-11-10 00:31:44.023393', '2023-11-10 00:31:44.034474', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (86, 1, '/param-config', '参数配置', 'system:param-config:list', 1, 'ep:edit', 255, 'system/param-config/index', 0, 1, 1, '2024-01-10 17:34:52.569663', '2024-01-19 02:11:27.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (87, 86, NULL, '查询', 'system:param-config:read', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:39:20.983241', '2024-01-10 17:39:20.983241', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (88, 86, NULL, '新增', 'system:param-config:create', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:39:57.543510', '2024-01-10 17:39:57.543510', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (89, 86, NULL, '更新', 'system:param-config:update', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:40:27.355944', '2024-01-10 17:40:27.355944', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (92, 86, NULL, '删除', 'system:param-config:delete', 2, '', 255, NULL, 1, 1, 1, '2024-01-10 17:57:32.059887', '2024-01-10 17:57:32.059887', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (107, 1, 'system/dict-item/:id', '字典项管理', 'system:dict-item:list', 1, 'ant-design:facebook-outlined', 255, 'system/dict-item/index', 0, 0, 1, '2024-01-28 09:21:17.409532', '2024-01-30 13:09:47.000000', 0, 1, '字典管理', 1); +INSERT INTO `sys_menu` VALUES (108, 107, NULL, '新增', 'system:dict-item:create', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:22:39.401758', '2024-01-28 22:38:36.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (109, 107, NULL, '更新', 'system:dict-item:update', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:26:43.911886', '2024-01-28 09:26:43.911886', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (110, 107, NULL, '删除', 'system:dict-item:delete', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:27:28.535225', '2024-01-28 09:27:28.535225', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (111, 107, NULL, '查询', 'system:dict-item:info', 2, '', 255, NULL, 1, 1, 1, '2024-01-28 09:27:43.894820', '2024-01-28 09:27:43.894820', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (112, 12, 'https://antdv.com/components/overview-cn', 'antdv文档(内嵌)', NULL, 1, '', 255, NULL, 1, 1, 1, '2024-01-29 09:23:08.407723', '2024-01-30 18:41:19.000000', 1, 2, NULL, 1); +INSERT INTO `sys_menu` VALUES (115, NULL, 'netdisk', '网盘管理', NULL, 0, 'ant-design:cloud-server-outlined', 255, NULL, 1, 0, 1, '2024-02-10 08:00:02.394616', '2024-03-08 15:14:06.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (116, 48, 'manage', '云盘管理', 'netdisk:manage:list', 1, 'ant-design:cloud-server-outlined', 252, 'netdisk/manage', 0, 0, 1, '2024-02-10 08:03:49.837348', '2024-04-07 10:29:44.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (117, 116, NULL, '创建文件或文件夹', 'netdisk:manage:create', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:40:22.317257', '2024-02-10 08:40:22.317257', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (118, 116, NULL, '查看文件', 'netdisk:manage:read', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:41:22.008015', '2024-02-10 08:41:22.008015', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (119, 116, NULL, '更新', 'netdisk:manage:update', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:41:50.691643', '2024-02-10 08:41:50.691643', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (120, 116, NULL, '删除', 'netdisk:manage:delete', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:42:09.480601', '2024-02-10 08:42:09.480601', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (121, 116, NULL, '获取文件上传token', 'netdisk:manage:token', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:42:57.688104', '2024-02-10 08:42:57.688104', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (122, 116, NULL, '添加文件备注', 'netdisk:manage:mark', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:43:40.117321', '2024-02-10 08:43:40.117321', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (123, 116, NULL, '下载文件', 'netdisk:manage:download', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:01.338984', '2024-02-10 08:44:01.338984', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (124, 116, NULL, '重命名文件或文件夹', 'netdisk:manage:rename', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:27.233379', '2024-02-10 08:45:36.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (125, 116, NULL, '复制文件或文件夹', 'netdisk:manage:copy', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:44:44.725391', '2024-02-10 08:45:48.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (126, 116, NULL, '剪切文件或文件夹', 'netdisk:manage:cut', 2, '', 255, NULL, 1, 1, 1, '2024-02-10 08:45:21.660511', '2024-02-10 08:45:21.660511', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (127, 115, 'overview', '网盘概览', 'netdisk:overview:desc', 1, '', 254, 'netdisk/overview', 0, 1, 1, '2024-02-10 09:32:56.981190', '2024-02-10 09:34:18.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (128, NULL, '/contract', '合同管理', NULL, 0, 'ep:document', 1, NULL, 1, 0, 1, '2024-02-29 10:40:39.080419', '2024-04-02 14:52:28.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (129, 128, '/contract/index', '合同审核', 'app:contract:list', 1, 'ep:document', 1, 'contract/index', 0, 1, 1, '2024-02-29 10:46:09.245521', '2024-02-29 14:59:56.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (130, NULL, '/vehicle-usage/index', '车辆使用', NULL, 1, 'ant-design:car-outlined', 4, 'vehicle-usage/index', 0, 0, 1, '2024-02-29 10:48:35.035363', '2024-04-02 14:53:14.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (131, NULL, '/materials-inventory/record-in-out', '出入库记录', 'materials_inventory:history_in_out:list', 1, 'ep:coin', 3, 'materials-inventory/in-out/index', 0, 1, 1, '2024-02-29 11:03:49.710130', '2024-04-02 14:52:54.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (132, 129, NULL, '更新', 'app:contract:update', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:00:39.641043', '2024-02-29 15:00:39.641043', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (133, 129, NULL, '删除', 'app:contract:delete', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:00:59.376071', '2024-02-29 15:00:59.376071', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (134, 129, NULL, '查询', 'app:contract:read', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:01:14.209396', '2024-02-29 15:45:29.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (135, 129, NULL, '新增', 'app:contract:create', 2, '', 255, NULL, 1, 1, 1, '2024-02-29 15:44:46.950582', '2024-02-29 15:44:46.950582', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (136, 131, NULL, '新增', 'materials_inventory:history_in_out:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:02.597782', '2024-03-06 10:54:28.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (137, 131, NULL, '更新', 'materials_inventory:history_in_out:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:15.192910', '2024-03-06 10:54:57.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (138, 131, NULL, '查询单个', 'app:contract:read', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:32.488892', '2024-03-01 17:17:32.488892', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (139, 131, NULL, '删除', 'materials_inventory:history_in_out:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-01 17:17:43.455773', '2024-03-06 10:55:06.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (140, NULL, '/materials-inventory/company', '乙方公司管理', 'app:company:list', 1, 'ep:office-building', 6, 'materials-inventory/company/index', 0, 1, 1, '2024-03-04 15:44:30.769048', '2024-03-27 12:57:31.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (141, 140, NULL, '单个查询', 'app:company:read', 2, '', 1, NULL, 1, 1, 1, '2024-03-04 15:45:55.979802', '2024-03-04 15:45:55.979802', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (142, 140, NULL, '新增', 'app:company:create', 2, '', 2, NULL, 1, 1, 1, '2024-03-04 15:46:11.260636', '2024-03-04 15:46:11.260636', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (143, 140, NULL, '更新', 'app:company:update', 2, '', 3, NULL, 1, 1, 1, '2024-03-04 15:46:25.098204', '2024-03-04 15:46:25.098204', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (144, 140, NULL, '删除', 'app:company:delete', 2, '', 4, NULL, 1, 1, 1, '2024-03-04 15:46:50.812446', '2024-03-04 15:46:50.812446', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (145, NULL, '/materials-inventory/product', '产品目录', 'app:product:list', 1, 'ant-design:product-outlined', 6, 'materials-inventory/product/index', 0, 1, 1, '2024-03-04 16:43:22.749281', '2024-03-27 12:56:52.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (146, 145, NULL, '单个查询', 'app:product:read', 2, '', 1, NULL, 1, 1, 1, '2024-03-04 16:44:56.482508', '2024-03-04 16:44:56.482508', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (147, 145, NULL, '新增', 'app:product:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:08.211188', '2024-03-04 16:45:08.211188', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (148, 145, NULL, '更新', 'app:product:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:25.457903', '2024-03-04 16:45:25.457903', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (149, 145, NULL, '删除', 'app:product:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-04 16:45:39.352621', '2024-03-04 16:45:39.352621', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (150, NULL, '/materials-inventory', '原材料盘点', NULL, 0, 'ant-design:dashboard-outlined', 3, NULL, 1, 0, 1, '2024-03-04 16:53:32.172674', '2024-04-02 14:52:58.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (151, 131, NULL, '导出', 'materials_inventory:history_in_out:export', 2, '', 5, NULL, 1, 1, 1, '2024-03-06 13:09:39.201093', '2024-03-06 13:09:39.201093', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (152, NULL, '/materials-inventory/inventory-check', '原材料库存管理', 'app:materials_inventory:list', 1, 'ant-design:dashboard-outlined', 2, 'materials-inventory/inventory-check/index', 1, 1, 1, '2024-03-06 13:33:24.795599', '2024-04-02 14:52:48.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (153, NULL, '/materials-inventory/project', '项目管理', 'app:project:list', 1, 'ep:memo', 4, 'materials-inventory/project/index', 0, 1, 1, '2024-03-07 09:28:19.234454', '2024-03-27 12:57:13.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (154, 153, NULL, '新增', 'app:project:create', 2, '', 1, NULL, 1, 1, 1, '2024-03-07 09:28:47.855064', '2024-03-07 09:28:47.855064', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (155, 153, NULL, '更新', 'app:project:update', 2, '', 2, NULL, 1, 1, 1, '2024-03-07 09:29:03.183084', '2024-03-07 09:29:03.183084', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (156, 153, NULL, '删除', 'app:project:delete', 2, '', 3, NULL, 1, 1, 1, '2024-03-07 09:29:16.684943', '2024-03-07 09:29:16.684943', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (157, 153, NULL, '单个信息', 'app:project:read', 2, '', 4, NULL, 1, 1, 1, '2024-03-07 09:29:33.424578', '2024-03-07 09:29:33.424578', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (158, 131, NULL, '导出原材料盘点表', 'app:materials_inventory:export', 2, '', 255, NULL, 1, 1, 0, '2024-03-07 11:46:54.468400', '2024-04-07 11:02:41.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (159, 130, NULL, '更新', 'app:vehicle_usage:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:04.324327', '2024-03-07 17:05:04.324327', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (160, 130, NULL, '删除', 'app:vehicle_usage:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:13.776313', '2024-03-07 17:05:13.776313', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (161, 130, NULL, '新增', 'app:vehicle_usage:create', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:25.081691', '2024-03-07 17:05:25.081691', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (162, 130, NULL, '单个信息', 'app:vehicle_usage:read', 2, '', 255, NULL, 1, 1, 1, '2024-03-07 17:05:48.310497', '2024-03-07 17:05:48.310497', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (163, 152, NULL, '导出', 'app:materials_inventory:export', 2, '', 255, NULL, 1, 1, 0, '2024-03-11 13:43:41.135585', '2024-04-07 11:02:08.000000', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (164, 152, NULL, '更新', 'app:materials_inventory:update', 2, '', 255, NULL, 1, 1, 1, '2024-03-11 13:44:23.144410', '2024-03-11 13:44:23.144410', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (165, 152, NULL, '删除', 'app:materials_inventory:delete', 2, '', 255, NULL, 1, 1, 1, '2024-03-11 13:44:47.383396', '2024-03-11 13:44:47.383396', 0, 1, NULL, 1); +INSERT INTO `sys_menu` VALUES (166, 128, '/contract/task', '任务管控', NULL, 1, 'ant-design:align-left-outlined', 255, 'task/index', 0, 1, 1, '2024-03-12 10:18:54.645756', '2024-03-12 10:18:54.645756', 0, 1, NULL, 1); -- ---------------------------- -- Table structure for sys_role -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `status` tinyint NULL DEFAULT 1, + `status` tinyint(0) NULL DEFAULT 1, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), - `default` tinyint NULL DEFAULT NULL, + `default` tinyint(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_223de54d6badbe43a5490450c3`(`name`) USING BTREE, UNIQUE INDEX `IDX_05edc0a51f41bb16b7d8137da9`(`value`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_role @@ -764,14 +872,14 @@ INSERT INTO `sys_role` VALUES (10, 'InventoryManager', '出入库管理员', ' -- ---------------------------- DROP TABLE IF EXISTS `sys_role_menus`; CREATE TABLE `sys_role_menus` ( - `role_id` int NOT NULL, - `menu_id` int NOT NULL, + `role_id` int(0) NOT NULL, + `menu_id` int(0) NOT NULL, PRIMARY KEY (`role_id`, `menu_id`) USING BTREE, INDEX `IDX_35ce749b04d57e226d059e0f63`(`role_id`) USING BTREE, INDEX `IDX_2b95fdc95b329d66c18f5baed6`(`menu_id`) USING BTREE, CONSTRAINT `FK_2b95fdc95b329d66c18f5baed6d` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT, CONSTRAINT `FK_35ce749b04d57e226d059e0f633` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_role_menus @@ -815,16 +923,16 @@ INSERT INTO `sys_role_menus` VALUES (10, 165); -- ---------------------------- DROP TABLE IF EXISTS `sys_task`; CREATE TABLE `sys_task` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `service` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `type` tinyint NOT NULL DEFAULT 0, - `status` tinyint NOT NULL DEFAULT 1, - `start_time` datetime NULL DEFAULT NULL, - `end_time` datetime NULL DEFAULT NULL, - `limit` int NULL DEFAULT 0, + `type` tinyint(0) NOT NULL DEFAULT 0, + `status` tinyint(0) NOT NULL DEFAULT 1, + `start_time` datetime(0) NULL DEFAULT NULL, + `end_time` datetime(0) NULL DEFAULT NULL, + `limit` int(0) NULL DEFAULT 0, `cron` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `every` int NULL DEFAULT NULL, + `every` int(0) NULL DEFAULT NULL, `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, `job_opts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, @@ -832,12 +940,12 @@ CREATE TABLE `sys_task` ( `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_ef8e5ab5ef2fe0ddb1428439ef`(`name`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_task -- ---------------------------- -INSERT INTO `sys_task` VALUES (2, '定时清空登录日志', 'LogClearJob.clearLoginLog', 0, 1, NULL, NULL, 0, '0 0 3 ? * 1', 0, '', '{\"count\":1,\"key\":\"__default__:2:::0 0 3 ? * 1\",\"cron\":\"0 0 3 ? * 1\",\"jobId\":2}', '定时清空登录日志', '2023-11-10 00:31:44.197779', '2024-04-07 10:57:58.000000'); +INSERT INTO `sys_task` VALUES (2, '定时清空登录日志', 'LogClearJob.clearLoginLog', 0, 1, NULL, NULL, 0, '0 0 3 ? * 1', 0, '', '{\"count\":1,\"key\":\"__default__:2:::0 0 3 ? * 1\",\"cron\":\"0 0 3 ? * 1\",\"jobId\":2}', '定时清空登录日志', '2023-11-10 00:31:44.197779', '2024-08-26 17:45:09.000000'); INSERT INTO `sys_task` VALUES (3, '定时清空任务日志', 'LogClearJob.clearTaskLog', 0, 0, NULL, NULL, 0, '0 0 3 ? * 1', 0, '', '{\"count\":1,\"key\":\"__default__:3:::0 0 3 ? * 1\",\"cron\":\"0 0 3 ? * 1\",\"jobId\":3}', '定时清空任务日志', '2023-11-10 00:31:44.197779', '2024-03-22 14:12:52.000000'); INSERT INTO `sys_task` VALUES (4, '访问百度首页', 'HttpRequestJob.handle', 0, 0, NULL, NULL, 1, '* * * * * ?', NULL, '{\"url\":\"https://www.baidu.com\",\"method\":\"get\"}', NULL, '访问百度首页', '2023-11-10 00:31:44.197779', '2023-11-10 00:31:44.206935'); INSERT INTO `sys_task` VALUES (5, '发送邮箱', 'EmailJob.send', 0, 0, NULL, NULL, -1, '0 0 0 1 * ?', NULL, '{\"subject\":\"这是标题\",\"to\":\"18661983080@163.com\",\"content\":\"这是正文\"}', NULL, '每月发送邮箱', '2023-11-10 00:31:44.197779', '2024-03-07 11:14:53.000000'); @@ -847,17 +955,17 @@ INSERT INTO `sys_task` VALUES (5, '发送邮箱', 'EmailJob.send', 0, 0, NULL, N -- ---------------------------- DROP TABLE IF EXISTS `sys_task_log`; CREATE TABLE `sys_task_log` ( - `id` int NOT NULL AUTO_INCREMENT, - `task_id` int NULL DEFAULT NULL, - `status` tinyint NOT NULL DEFAULT 0, + `id` int(0) NOT NULL AUTO_INCREMENT, + `task_id` int(0) NULL DEFAULT NULL, + `status` tinyint(0) NOT NULL DEFAULT 0, `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `consume_time` int NULL DEFAULT 0, + `consume_time` int(0) NULL DEFAULT 0, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, INDEX `FK_f4d9c36052fdb188ff5c089454b`(`task_id`) USING BTREE, CONSTRAINT `FK_f4d9c36052fdb188ff5c089454b` FOREIGN KEY (`task_id`) REFERENCES `sys_task` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_task_log @@ -871,7 +979,7 @@ INSERT INTO `sys_task_log` VALUES (3, 2, 1, NULL, 0, '2024-04-01 03:00:00.202419 -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, @@ -879,39 +987,41 @@ CREATE TABLE `sys_user` ( `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `psalt` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NULL DEFAULT 1, + `status` tinyint(0) NULL DEFAULT 1, `qq` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `dept_id` int NULL DEFAULT NULL, + `dept_id` int(0) NULL DEFAULT NULL, + `name_pinyin` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品名称的拼音', + `domain` int(0) NOT NULL DEFAULT 1 COMMENT '所属域', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `IDX_9e7164b2f1ea1348bc0eb0a7da`(`username`) USING BTREE, INDEX `FK_96bde34263e2ae3b46f011124ac`(`dept_id`) USING BTREE, CONSTRAINT `FK_96bde34263e2ae3b46f011124ac` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_user -- ---------------------------- -INSERT INTO `sys_user` VALUES (1, 'admin', 'a11571e778ee85e82caae2d980952546', 'https://thirdqq.qlogo.cn/g?b=qq&s=100&nk=1743369777', '1743369777@qq.com', '10086', '管理员', 'xQYCspvFb8cAW6GG1pOoUGTLqsuUSO3d', 1, '1743369777', '2023-11-10 00:31:44.104382', '2024-04-02 14:53:56.000000', '朱明仁', 2); -INSERT INTO `sys_user` VALUES (9, 'mengfei', '53a7b8157dbbbd51687c23cb783c5fe4', NULL, NULL, NULL, NULL, 'hm-VO0n2GO0qEZhEz6LdBBtFhIEMv0jo', 1, NULL, '2024-04-02 14:59:08.770239', '2024-04-07 10:50:24.000000', '孟菲', 2); -INSERT INTO `sys_user` VALUES (10, 'wangxinghao', '41c7f42c6e8a3eec7ac5b41ae0de84be', '[object Object]', NULL, NULL, NULL, '--IWP-ybu1ikzGpGOVCWEpkZ1hIheCVJ', 1, NULL, '2024-04-02 15:39:38.117227', '2024-04-07 11:07:49.000000', '王兴昊', 2); -INSERT INTO `sys_user` VALUES (11, 'zhangxueyong', 'c67a29c03f168650e2a43590328446b8', NULL, NULL, NULL, '张学勇', 'ucnRs7VTbXnwej2JQbKeYSoJ1gLy2Fwi', 1, NULL, '2024-04-03 08:10:08.192204', '2024-04-07 11:07:54.000000', '张学勇', 1); +INSERT INTO `sys_user` VALUES (1, 'admin', 'a11571e778ee85e82caae2d980952546', 'https://thirdqq.qlogo.cn/g?b=qq&s=100&nk=1743369777', '1743369777@qq.com', '10086', '管理员', 'xQYCspvFb8cAW6GG1pOoUGTLqsuUSO3d', 1, '1743369777', '2023-11-10 00:31:44.104382', '2024-04-02 14:53:56.000000', '朱明仁', 2, NULL, 1); +INSERT INTO `sys_user` VALUES (9, 'mengfei', '53a7b8157dbbbd51687c23cb783c5fe4', NULL, NULL, NULL, NULL, 'hm-VO0n2GO0qEZhEz6LdBBtFhIEMv0jo', 1, NULL, '2024-04-02 14:59:08.770239', '2024-04-07 10:50:24.000000', '孟菲', 2, NULL, 1); +INSERT INTO `sys_user` VALUES (10, 'wangxinghao', '41c7f42c6e8a3eec7ac5b41ae0de84be', '[object Object]', NULL, NULL, NULL, '--IWP-ybu1ikzGpGOVCWEpkZ1hIheCVJ', 1, NULL, '2024-04-02 15:39:38.117227', '2024-04-07 11:07:49.000000', '王兴昊', 2, NULL, 1); +INSERT INTO `sys_user` VALUES (11, 'zhangxueyong', 'c67a29c03f168650e2a43590328446b8', NULL, NULL, NULL, '张学勇', 'ucnRs7VTbXnwej2JQbKeYSoJ1gLy2Fwi', 1, NULL, '2024-04-03 08:10:08.192204', '2024-04-07 11:07:54.000000', '张学勇', 1, NULL, 1); -- ---------------------------- -- Table structure for sys_user_roles -- ---------------------------- DROP TABLE IF EXISTS `sys_user_roles`; CREATE TABLE `sys_user_roles` ( - `user_id` int NOT NULL, - `role_id` int NOT NULL, + `user_id` int(0) NOT NULL, + `role_id` int(0) NOT NULL, PRIMARY KEY (`user_id`, `role_id`) USING BTREE, INDEX `IDX_96311d970191a044ec048011f4`(`user_id`) USING BTREE, INDEX `IDX_6d61c5b3f76a3419d93a421669`(`role_id`) USING BTREE, CONSTRAINT `FK_6d61c5b3f76a3419d93a4216695` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `FK_96311d970191a044ec048011f44` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_user_roles @@ -926,16 +1036,16 @@ INSERT INTO `sys_user_roles` VALUES (11, 10); -- ---------------------------- DROP TABLE IF EXISTS `todo`; CREATE TABLE `todo` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, - `user_id` int NULL DEFAULT NULL, - `status` tinyint NOT NULL DEFAULT 0, + `user_id` int(0) NULL DEFAULT NULL, + `status` tinyint(0) NOT NULL DEFAULT 0, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY (`id`) USING BTREE, INDEX `FK_9cb7989853c4cb7fe427db4b260`(`user_id`) USING BTREE, CONSTRAINT `FK_9cb7989853c4cb7fe427db4b260` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of todo @@ -947,7 +1057,7 @@ INSERT INTO `todo` VALUES (1, 'nest.js', NULL, 0, '2023-11-10 00:31:44.139730', -- ---------------------------- DROP TABLE IF EXISTS `tool_storage`; CREATE TABLE `tool_storage` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件名', @@ -956,15 +1066,11 @@ CREATE TABLE `tool_storage` ( `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, - `user_id` int NULL DEFAULT NULL, + `user_id` int(0) NULL DEFAULT NULL, `bussiness_module` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, - `bussiness_record_id` int NULL DEFAULT NULL, + `bussiness_record_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 280 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of tool_storage --- ---------------------------- +) ENGINE = InnoDB AUTO_INCREMENT = 280 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for user_access_tokens @@ -973,19 +1079,20 @@ DROP TABLE IF EXISTS `user_access_tokens`; CREATE TABLE `user_access_tokens` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `expired_at` datetime NOT NULL COMMENT '令牌过期时间', + `expired_at` datetime(0) NOT NULL COMMENT '令牌过期时间', `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '令牌创建时间', - `user_id` int NULL DEFAULT NULL, + `user_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `FK_e9d9d0c303432e4e5e48c1c3e90`(`user_id`) USING BTREE, CONSTRAINT `FK_e9d9d0c303432e4e5e48c1c3e90` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of user_access_tokens -- ---------------------------- INSERT INTO `user_access_tokens` VALUES ('067fa54e-e37d-45eb-850c-11fe6e580555', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MTI0NTgyMTR9.KxpU61iQtg1j2zziHZB0gKGdvCiViIlTKkuY59EpD4s', '2024-04-08 10:50:14', '2024-04-07 10:50:14.399413', 1); INSERT INTO `user_access_tokens` VALUES ('06fa487c-c9f4-4dcc-8643-ef6146e42add', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjksInB2IjoxLCJyb2xlcyI6WyJJbnZlbnRvcnlNYW5hZ2VyIl0sImlhdCI6MTcxMjQ1ODc5Mn0.mnEZ_Re_83_6NSgAf_E5Rp2akIOVsQQ_tQCgdk1QhZ0', '2024-04-08 10:59:53', '2024-04-07 10:59:52.570969', 9); +INSERT INTO `user_access_tokens` VALUES ('4170ae04-52b2-43e6-be7d-8dfdc2714730', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MjQ2NTIyNTl9.LoHDBsQvZZAczSZCUIxkG50RJgWwzdAkFmAgig16k14', '2024-08-27 14:04:20', '2024-08-26 14:04:19.714012', 1); INSERT INTO `user_access_tokens` VALUES ('4b231512-42ac-41f6-9acc-9b3ac9590f12', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MTI0NTY3MTd9._1XC-bHE_X0vWiCvexC5tXRIiZ5iwh6YX6DJO31KROk', '2024-04-08 10:25:18', '2024-04-07 10:25:17.962621', 1); INSERT INTO `user_access_tokens` VALUES ('50be25ab-05a0-468f-919c-ec623ac41761', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MTI0MTc2MjB9.otSnlbtKFKqoJUD5e0wM25Nxp6qjXs0r9FXnSO9zdOw', '2024-04-07 23:33:40', '2024-04-06 23:33:40.021878', 1); INSERT INTO `user_access_tokens` VALUES ('64b831b0-32a9-4fad-ae3f-9f8f370f3bf2', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjksInB2IjoxLCJyb2xlcyI6WyJJbnZlbnRvcnlNYW5hZ2VyIl0sImlhdCI6MTcxMjQ1ODI3NH0.pmdigNgdbtUHrktkP8t4DhaxTKnBPogHUVdC5XEXSA4', '2024-04-08 10:51:14', '2024-04-07 10:51:14.116966', 9); @@ -1009,13 +1116,13 @@ DROP TABLE IF EXISTS `user_refresh_tokens`; CREATE TABLE `user_refresh_tokens` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `expired_at` datetime NOT NULL COMMENT '令牌过期时间', + `expired_at` datetime(0) NOT NULL COMMENT '令牌过期时间', `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '令牌创建时间', `accessTokenId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `REL_1dfd080c2abf42198691b60ae3`(`accessTokenId`) USING BTREE, CONSTRAINT `FK_1dfd080c2abf42198691b60ae39` FOREIGN KEY (`accessTokenId`) REFERENCES `user_access_tokens` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of user_refresh_tokens @@ -1029,6 +1136,7 @@ INSERT INTO `user_refresh_tokens` VALUES ('51c7573f-2d21-4206-a242-906d764a874d' INSERT INTO `user_refresh_tokens` VALUES ('7827a7fe-a694-4723-b11e-fd1fd542e81b', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZDV6MXo5MjdMZ1V1bXJTUmY0WEloIiwiaWF0IjoxNzEyNDU4NzI4fQ.ViiYJc3DmYug_JbpcT4D6a65LVj23ebSkHuxWipFQkE', '2024-05-07 10:58:48', '2024-04-07 10:58:48.193052', '96ae5545-c90f-452a-bae7-377e8cf32169'); INSERT INTO `user_refresh_tokens` VALUES ('7c504748-e2e6-41b6-a4b6-affc8bd8de72', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiajd1WmgxRjFmMnNqNWQ5Z0RienBwIiwiaWF0IjoxNzEyNDU4MTk0fQ.0BaG_gy41z-7y9EpZK05RV2-OgkDFHMEtJ9ofuVMLPs', '2024-05-07 10:49:55', '2024-04-07 10:49:54.993642', '657d245b-b61f-4f84-9bb8-3358ad645546'); INSERT INTO `user_refresh_tokens` VALUES ('81c1b063-256a-4337-87db-e7bb01a9c793', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiOThjSTdkSkJQZGdFZ3lJQjJRODI3IiwiaWF0IjoxNzEyNDU4MTM5fQ.fpDITw5fInmn4_fXde-O-i-SgV_9-lGrAqk5Rq-v1VY', '2024-05-07 10:48:59', '2024-04-07 10:48:59.389990', '841bd4fc-b3e5-4864-ad4e-6849261e5806'); +INSERT INTO `user_refresh_tokens` VALUES ('85d1da07-71cf-4785-8fa1-1494250ad5d4', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiYzV3enFMU3p4M2k3aDdoWVktVmtWIiwiaWF0IjoxNzI0NjUyMjU5fQ.1pFBs5uyUxO6t0zs2Nf_Aer_91z72sJ29mNSDBbYjgY', '2024-09-25 14:04:20', '2024-08-26 14:04:19.729204', '4170ae04-52b2-43e6-be7d-8dfdc2714730'); INSERT INTO `user_refresh_tokens` VALUES ('879409aa-4e60-491f-b155-cb4433832ae8', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiUnJBMFRQbGtnckpIRTNUVG83QjRPIiwiaWF0IjoxNzEyNDU4NzkyfQ.YFufOp1ytb6ZyzaMFscf972VMIaPb09GsG9Z0FBp7R8', '2024-05-07 10:59:53', '2024-04-07 10:59:52.580656', '06fa487c-c9f4-4dcc-8643-ef6146e42add'); INSERT INTO `user_refresh_tokens` VALUES ('89b9df53-5d1b-4640-878c-821db4ddafe1', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiVkJlOEZ5OHJ3Um1HQkxfMVRNQzNlIiwiaWF0IjoxNzEyNDU4Njg5fQ.SwXWgzeLNKAvQU39SHrQYrGSQmYWAaAjOF0WVNveHGc', '2024-05-07 10:58:10', '2024-04-07 10:58:09.604051', 'd9f221ea-111d-47fe-932d-4123174dfce8'); INSERT INTO `user_refresh_tokens` VALUES ('8ba5e525-a9eb-4823-b41e-ef9fb04624a2', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiSVY5bW1WRDRzY0xwaE00ek90ZmRaIiwiaWF0IjoxNzEyNDU3ODA2fQ.UKJaAJvXJJg96almY9QNb8mrjyBPewQvw5ECgZGjRpI', '2024-05-07 10:43:26', '2024-04-07 10:43:26.350399', 'cdb64fe0-ca48-466b-9caa-5812aa7a8634'); @@ -1043,48 +1151,40 @@ INSERT INTO `user_refresh_tokens` VALUES ('ff56df48-89bb-46b3-a8d2-80426dba6e43' -- ---------------------------- DROP TABLE IF EXISTS `vehicle_usage`; CREATE TABLE `vehicle_usage` ( - `id` int NOT NULL AUTO_INCREMENT, + `id` int(0) NOT NULL AUTO_INCREMENT, `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `reviewer` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核人', - `status` tinyint NOT NULL DEFAULT 0 COMMENT '审核状态(字典)', + `status` tinyint(0) NOT NULL DEFAULT 0 COMMENT '审核状态(字典)', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', - `year` int NOT NULL COMMENT '年度', - `vehicle_id` int NOT NULL COMMENT '外出使用的车辆名称(字典)', + `year` int(0) NOT NULL COMMENT '年度', + `vehicle_id` int(0) NOT NULL COMMENT '外出使用的车辆名称(字典)', `applicant` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '申请人', `driver` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出行司机', - `current_mileage` int NULL DEFAULT NULL COMMENT '当前车辆里程数(KM)', + `current_mileage` int(0) NULL DEFAULT NULL COMMENT '当前车辆里程数(KM)', `expected_start_date` date NULL DEFAULT NULL COMMENT '预计出行开始时间', `expected_end_date` date NULL DEFAULT NULL COMMENT '预计出行结束时间', `purpose` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '使用事由', `actual_return_time` date NULL DEFAULT NULL COMMENT '实际回司时间', - `return_mileage` int NULL DEFAULT NULL COMMENT '回城车辆里程数(KM)', + `return_mileage` int(0) NULL DEFAULT NULL COMMENT '回城车辆里程数(KM)', `partner` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '随行人员', PRIMARY KEY (`id`) USING BTREE, INDEX `FK_6aff0ec40ff474e6228c1125f5c`(`vehicle_id`) USING BTREE, CONSTRAINT `FK_6aff0ec40ff474e6228c1125f5c` FOREIGN KEY (`vehicle_id`) REFERENCES `sys_dict_item` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of vehicle_usage --- ---------------------------- +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for vehicle_usage_storage -- ---------------------------- DROP TABLE IF EXISTS `vehicle_usage_storage`; CREATE TABLE `vehicle_usage_storage` ( - `vehicle_id` int NOT NULL, - `file_id` int NOT NULL, + `vehicle_id` int(0) NOT NULL, + `file_id` int(0) NOT NULL, PRIMARY KEY (`vehicle_id`, `file_id`) USING BTREE, INDEX `IDX_1d122393de1ee773c383569e71`(`vehicle_id`) USING BTREE, INDEX `IDX_a8cbcb6835a9212dd2a49b50ed`(`file_id`) USING BTREE, CONSTRAINT `FK_1d122393de1ee773c383569e717` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicle_usage` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_a8cbcb6835a9212dd2a49b50ed9` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; - --- ---------------------------- --- Records of vehicle_usage_storage --- ---------------------------- +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;