diff --git a/deploy/sql/hxoa.sql b/deploy/sql/hxoa.sql index 872e522..8839b95 100644 --- a/deploy/sql/hxoa.sql +++ b/deploy/sql/hxoa.sql @@ -1,119 +1,467 @@ -/* - Navicat Premium Data Transfer +-- MySQL dump 10.13 Distrib 8.0.28, for Win64 (x86_64) +-- +-- Host: 127.0.0.1 Database: hxoa +-- ------------------------------------------------------ +-- Server version 8.3.0 - Source Server : 13307 - Source Server Type : MySQL - Source Server Version : 80300 - Source Host : localhost:13307 - Source Schema : hxoa +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!50503 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - Target Server Type : MySQL - Target Server Version : 80300 - File Encoding : 65001 +-- +-- Table structure for table `company` +-- - Date: 28/02/2024 11:52:46 -*/ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - --- ---------------------------- --- Table structure for sys_captcha_log --- ---------------------------- -DROP TABLE IF EXISTS `sys_captcha_log`; -CREATE TABLE `sys_captcha_log` ( +DROP TABLE IF EXISTS `company`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `company` ( `id` int NOT NULL AUTO_INCREMENT, - `user_id` int 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), + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司名称', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE KEY `IDX_a76c5cd486f7779bd9c319afd2` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `company` +-- + +/*!40000 ALTER TABLE `company` DISABLE KEYS */; +INSERT INTO `company` VALUES (1,'2024-03-04 15:44:43.005593','2024-03-04 16:09:44.000000','深圳市立创电子商务有限公司',0),(4,'2024-03-04 16:05:34.701780','2024-03-04 16:05:34.701780','深圳市诚亨泰科技有限公司',0),(5,'2024-03-04 16:05:38.867786','2024-03-04 16:05:38.867786','东莞市顶源电子有限公司',0),(6,'2024-03-04 16:05:42.479027','2024-03-04 16:05:42.479027','深圳市福田区赛格电子市场金佳电子经营部',0),(7,'2024-03-04 16:05:46.775364','2024-03-04 16:05:46.775364','深圳市思界电子科技有限公司',0),(8,'2024-03-04 16:05:55.806537','2024-03-04 16:05:55.806537','广州市星翼电信科技有限公司',0),(9,'2024-03-04 16:06:03.003860','2024-03-04 16:09:49.000000','快递费',1),(10,'2024-03-04 16:06:09.788572','2024-03-04 16:06:09.788572','青岛丰喆精密模具有限公司',0),(11,'2024-03-04 16:06:12.872983','2024-03-04 16:06:12.872983','深圳嘉立创科技集团股份有限公司',0),(12,'2024-03-04 16:06:19.823410','2024-03-04 16:06:19.823410','北京特倍福电子技术有限公司',0),(13,'2024-03-04 16:06:25.937749','2024-03-04 16:06:25.937749','上海脉芯网络科技有限公司',0); +/*!40000 ALTER TABLE `company` ENABLE KEYS */; + +-- +-- Table structure for table `company_storage` +-- + +DROP TABLE IF EXISTS `company_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `company_storage` ( + `company_id` int NOT NULL, + `file_id` int NOT NULL, + PRIMARY KEY (`company_id`,`file_id`), + KEY `IDX_0958ee6ca6f52985840624bb91` (`company_id`), + KEY `IDX_bdd3a301229b9dec4b95549dfe` (`file_id`), + 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`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `company_storage` +-- + +/*!40000 ALTER TABLE `company_storage` DISABLE KEYS */; +/*!40000 ALTER TABLE `company_storage` ENABLE KEYS */; + +-- +-- Table structure for table `contract` +-- + +DROP TABLE IF EXISTS `contract`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `contract` ( + `id` int 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 '合同类型(字典)', + `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 DEFAULT NULL, + `delivery_deadline` date DEFAULT NULL, + `status` tinyint NOT NULL DEFAULT '0' COMMENT '审核状态(字典)', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE KEY `IDX_a2f8461960ce0fcbd0d6551009` (`contract_number`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `contract` +-- + +/*!40000 ALTER TABLE `contract` DISABLE KEYS */; +INSERT INTO `contract` VALUES (1,'2024-02-29 11:38:20.959071','2024-03-06 10:40:25.000000','2022092301','山东矿机华信智能科技有限公司',11,'山东矿机华信','青岛比特维尔','2024-01-01','2024-02-01',1,0),(2,'2024-02-29 16:11:54.286196','2024-02-29 16:50:30.000000','www','weqw',10,'rqw','rwq','2024-02-01','2024-02-28',2,0),(3,'2024-03-01 15:26:07.794697','2024-03-01 15:30:49.000000','test1211','test',13,'山东搞笑信息','齐鲁医院','2024-03-01','2024-03-20',0,1),(4,'2024-03-01 16:47:22.125670','2024-03-01 16:47:22.125670','33024242','21412412',11,'2141','41241','2024-03-01','2024-03-01',0,0); +/*!40000 ALTER TABLE `contract` ENABLE KEYS */; + +-- +-- Table structure for table `contract_storage` +-- + +DROP TABLE IF EXISTS `contract_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `contract_storage` ( + `contract_id` int NOT NULL, + `file_id` int NOT NULL, + PRIMARY KEY (`contract_id`,`file_id`), + KEY `IDX_b0a3f22af56decbc128c674447` (`contract_id`), + KEY `IDX_2fe7cda0f292b099b7e13f8f61` (`file_id`), + CONSTRAINT `FK_2fe7cda0f292b099b7e13f8f612` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`), + CONSTRAINT `FK_b0a3f22af56decbc128c674447e` FOREIGN KEY (`contract_id`) REFERENCES `contract` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `contract_storage` +-- + +/*!40000 ALTER TABLE `contract_storage` DISABLE KEYS */; +/*!40000 ALTER TABLE `contract_storage` ENABLE KEYS */; + +-- +-- Table structure for table `materials_in_out` +-- + +DROP TABLE IF EXISTS `materials_in_out`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `materials_in_out` ( + `id` int 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 '产品', + `inOrOut` tinyint NOT NULL COMMENT '入库或出库', + `time` date DEFAULT NULL COMMENT '时间', + `quantity` int 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) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '经办人', + `issuance_number` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '领料单号', + `remark` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + `inventory_number` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '原材料库存编号', + `project_id` int DEFAULT NULL COMMENT '项目', + PRIMARY KEY (`id`), + KEY `FK_770f1c4afd9631499ccc08bd58b` (`product_id`), + KEY `FK_7a5bd19f8fd458f6336efedf765` (`project_id`), + CONSTRAINT `FK_770f1c4afd9631499ccc08bd58b` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`), + CONSTRAINT `FK_7a5bd19f8fd458f6336efedf765` FOREIGN KEY (`project_id`) REFERENCES `project` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `materials_in_out` +-- + +/*!40000 ALTER TABLE `materials_in_out` DISABLE KEYS */; +INSERT INTO `materials_in_out` VALUES (7,'2024-03-06 15:39:38.305753','2024-03-07 11:10:10.000000',19,0,'2024-02-16',100,557.5200000000,55752.2100000000,'蒋博',NULL,'沙湾项目',0,'KC1000',3),(16,'2024-03-06 15:50:12.315922','2024-03-07 11:10:07.000000',19,1,'2024-02-16',100,100.0000000000,55752.2100000000,'蒋博','3153019','沙湾项目',0,'KC1000',3),(17,'2024-03-06 16:06:57.397785','2024-03-06 17:09:14.325720',19,1,'2024-03-06',33,33.0000000000,33.0000000000,'3','33','33',1,'KC1000',NULL),(18,'2024-03-06 16:08:37.713482','2024-03-07 11:10:03.000000',20,0,'2024-02-16',100,557.5200000000,55752.2100000000,'蒋博',NULL,'沙湾项目',0,'KC1001',3),(19,'2024-03-06 16:30:52.126055','2024-03-07 11:09:57.000000',20,1,'2024-02-16',100,35.4000000000,3539.8200000000,'蒋博','3153019','沙湾项目',0,'KC1001',3),(20,'2024-03-06 16:34:04.845239','2024-03-07 11:09:52.000000',21,0,'2024-02-16',202,18.5800000000,3753.9800000000,'戚兆伟',NULL,'沙湾项目',0,'KC1002',3),(21,'2024-03-06 16:34:40.829659','2024-03-07 11:09:47.000000',21,1,'2024-02-16',202,18.5800000000,3753.9800000000,'戚兆伟','3153011','沙湾项目',0,'KC1002',3),(22,'2024-03-06 16:35:23.756416','2024-03-07 11:09:43.000000',21,0,'2024-02-16',200,26.5500000000,5309.7300000000,'戚兆伟',NULL,'沙湾项目',0,'KC1003',3),(23,'2024-03-06 16:35:55.157718','2024-03-07 11:09:38.000000',21,1,'2024-02-16',200,26.5500000000,5309.7300000000,'戚兆伟','3153011','沙湾项目',0,'KC1003',3),(24,'2024-03-06 16:38:52.490493','2024-03-07 11:09:34.000000',22,0,'2024-02-20',200,300.8800000000,60176.9900000000,'朱明仁',NULL,'东大项目',0,'KC1004',2),(25,'2024-03-06 16:39:55.423422','2024-03-07 11:09:30.000000',22,1,'2024-02-20',200,300.8849500000,60176.9900000000,'朱明仁','3153022','东大项目',0,'KC1004',2),(26,'2024-03-06 16:41:20.939530','2024-03-07 11:09:27.000000',23,0,'2024-02-19',1,22005.7500000000,22005.7500000000,'朱明仁',NULL,'东大项目',0,'KC1005',2),(27,'2024-03-06 16:41:50.876715','2024-03-07 11:08:31.000000',23,1,'2024-02-19',1,22005.7500000000,22005.7500000000,'朱明仁','3153023','东大项目',0,'KC1005',2),(28,'2024-03-07 09:49:54.511550','2024-03-07 09:49:54.511550',24,0,'2024-02-16',800,0.9609250000,768.7400000000,'朱明仁',NULL,'星火项目',0,'KC1006',1); +/*!40000 ALTER TABLE `materials_in_out` ENABLE KEYS */; + +-- +-- Table structure for table `materials_in_out_storage` +-- + +DROP TABLE IF EXISTS `materials_in_out_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `materials_in_out_storage` ( + `materials_in_out_id` int NOT NULL, + `file_id` int NOT NULL, + PRIMARY KEY (`materials_in_out_id`,`file_id`), + KEY `IDX_9df13ab4d4747575c310668581` (`materials_in_out_id`), + KEY `IDX_96c00bfbcd71e93a6cc070e8e6` (`file_id`), + CONSTRAINT `FK_96c00bfbcd71e93a6cc070e8e6c` FOREIGN KEY (`file_id`) REFERENCES `tool_storage` (`id`), + CONSTRAINT `FK_9df13ab4d4747575c3106685810` FOREIGN KEY (`materials_in_out_id`) REFERENCES `materials_in_out` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `materials_in_out_storage` +-- + +/*!40000 ALTER TABLE `materials_in_out_storage` DISABLE KEYS */; +/*!40000 ALTER TABLE `materials_in_out_storage` ENABLE KEYS */; + +-- +-- Table structure for table `materials_inventory` +-- + +DROP TABLE IF EXISTS `materials_inventory`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `materials_inventory` ( + `id` int 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), + `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公司名称', + `product` int NOT NULL COMMENT '产品名称(字典)', + `unit` int NOT NULL COMMENT '单位(字典)', + `previous_inventory_quantity` int NOT NULL DEFAULT '0' COMMENT '之前的库存数量', + `previous_unit_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '之前的单价', + `previous_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '之前的金额', + `inventory_time` date DEFAULT NULL COMMENT '入库时间', + `inventory_quantity` int NOT NULL DEFAULT '0' COMMENT '入库数量', + `inventory_unit_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '入库单价', + `inventory_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '入库金额', + `out_time` date DEFAULT NULL COMMENT '出库时间', + `out_quantity` int NOT NULL DEFAULT '0' COMMENT '出库数量', + `out_unit_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '出库单价', + `out_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '出库金额', + `current_inventory_quantity` int NOT NULL DEFAULT '0' COMMENT '现在的结存数量', + `current_unit_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '现在的单价', + `current_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '现在的金额', + `agent` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '经办人', + `issuance_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '领料单号', + `project` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `materials_inventory` +-- + +/*!40000 ALTER TABLE `materials_inventory` DISABLE KEYS */; +INSERT INTO `materials_inventory` VALUES (1,'2024-03-04 13:47:10.258131','2024-03-04 14:15:15.373283','北京特倍福电子技术有限公司',1,14,0,0.00,0.00,'2024-02-16',100,557.52,55752.21,'2024-02-16',100,557.52,55752.21,0,0.00,0.00,'蒋博','3153019','沙湾项目','沙湾项目',0); +/*!40000 ALTER TABLE `materials_inventory` ENABLE KEYS */; + +-- +-- Table structure for table `product` +-- + +DROP TABLE IF EXISTS `product`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `product` ( + `id` int 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) COLLATE utf8mb4_general_ci NOT NULL COMMENT '产品名称', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + `company_id` int DEFAULT NULL COMMENT '所属公司', + `name_pinyin` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '产品名称的拼音', + `unit_id` int DEFAULT NULL COMMENT '单位(字典)', + PRIMARY KEY (`id`), + KEY `FK_a0503db1630a5b8a4d7deabd556` (`company_id`), + KEY `FK_b15422982adca3bf53adfb535de` (`unit_id`), + CONSTRAINT `FK_a0503db1630a5b8a4d7deabd556` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`), + CONSTRAINT `FK_b15422982adca3bf53adfb535de` FOREIGN KEY (`unit_id`) REFERENCES `sys_dict_item` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `product` +-- + +/*!40000 ALTER TABLE `product` DISABLE KEYS */; +INSERT INTO `product` VALUES (1,'2024-03-04 16:47:37.604035','2024-03-05 21:52:59.000000','位移传感器',0,10,'weiyichuanganqi',NULL),(2,'2024-03-04 16:47:41.483273','2024-03-06 09:13:03.000000','磁环',1,6,'cihuan',NULL),(3,'2024-03-04 16:47:44.911165','2024-03-05 21:52:52.000000','天线',0,5,'tianxian',NULL),(4,'2024-03-04 16:47:48.398543','2024-03-05 21:53:17.000000','集成电路',0,8,'jichengdianlu',NULL),(5,'2024-03-05 09:09:05.015757','2024-03-05 09:27:28.000000','更新',1,NULL,NULL,NULL),(12,'2024-03-05 09:25:29.584423','2024-03-06 09:12:02.000000','巴伦',0,13,'balun',15),(13,'2024-03-05 13:53:15.998630','2024-03-06 09:14:13.000000','极薄煤层控制器',0,10,'jibaomeicengkongzhiqi',14),(14,'2024-03-05 16:05:30.485017','2024-03-06 09:13:59.000000','天线',0,13,'tianxian',15),(15,'2024-03-05 17:21:20.378006','2024-03-05 21:52:57.000000','USB智能充电线',0,7,'USBzhinengchongdianxian',NULL),(16,'2024-03-05 17:24:03.148627','2024-03-05 17:30:48.000000','33',1,5,NULL,NULL),(17,'2024-03-05 17:30:32.450320','2024-03-05 17:30:50.000000','test',1,5,'test',NULL),(18,'2024-03-05 21:52:11.477508','2024-03-05 21:53:34.000000','新增',1,NULL,'xinzeng',NULL),(19,'2024-03-06 08:53:25.600367','2024-03-06 09:13:39.000000','位移传感器',0,12,'weiyichuanganqi',14),(20,'2024-03-06 09:12:47.327409','2024-03-06 09:12:47.327409','磁环',0,12,'cihuan',14),(21,'2024-03-06 09:13:21.382776','2024-03-06 09:13:27.000000','集成电路',0,13,'jichengdianlu',15),(22,'2024-03-06 16:38:06.999498','2024-03-06 16:38:14.000000','电磁阀驱动器',0,10,'diancifaqudongqi',14),(23,'2024-03-06 16:40:32.859846','2024-03-06 16:40:32.859846','电子元器件',0,11,'dianziyuanqijian',21),(24,'2024-03-07 09:48:35.854273','2024-03-07 09:48:35.854273','排针',0,1,'paizhen',15); +/*!40000 ALTER TABLE `product` ENABLE KEYS */; + +-- +-- Table structure for table `product_storage` +-- + +DROP TABLE IF EXISTS `product_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `product_storage` ( + `product_id` int NOT NULL, + `file_id` int NOT NULL, + PRIMARY KEY (`product_id`,`file_id`), + KEY `IDX_6dd288598f0a0ea3f72f31cb42` (`product_id`), + KEY `IDX_eecbd68d7d4d565baecee2d76c` (`file_id`), + 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`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `product_storage` +-- + +/*!40000 ALTER TABLE `product_storage` DISABLE KEYS */; +INSERT INTO `product_storage` VALUES (1,124); +/*!40000 ALTER TABLE `product_storage` ENABLE KEYS */; + +-- +-- Table structure for table `project` +-- + +DROP TABLE IF EXISTS `project`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `project` ( + `id` int 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) COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目名称', + `is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除', + PRIMARY KEY (`id`), + UNIQUE KEY `IDX_dedfea394088ed136ddadeee89` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `project` +-- + +/*!40000 ALTER TABLE `project` DISABLE KEYS */; +INSERT INTO `project` VALUES (1,'2024-03-07 09:35:15.276345','2024-03-07 09:36:01.000000','星火项目',0),(2,'2024-03-07 09:35:20.004729','2024-03-07 09:35:20.004729','东大项目',0),(3,'2024-03-07 09:35:29.213057','2024-03-07 09:35:29.213057','沙湾煤业项目',0); +/*!40000 ALTER TABLE `project` ENABLE KEYS */; + +-- +-- Table structure for table `project_storage` +-- + +DROP TABLE IF EXISTS `project_storage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `project_storage` ( + `project_id` int NOT NULL, + `file_id` int NOT NULL, + PRIMARY KEY (`project_id`,`file_id`), + KEY `IDX_9058e954f8f09e2cfa2261c1f2` (`project_id`), + KEY `IDX_ac08ac8e4f973873f03dafaca2` (`file_id`), + 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`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `project_storage` +-- + +/*!40000 ALTER TABLE `project_storage` DISABLE KEYS */; +INSERT INTO `project_storage` VALUES (1,128); +/*!40000 ALTER TABLE `project_storage` ENABLE KEYS */; + +-- +-- Table structure for table `sys_captcha_log` +-- + +DROP TABLE IF EXISTS `sys_captcha_log`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_captcha_log` ( + `id` int NOT NULL AUTO_INCREMENT, + `user_id` int DEFAULT NULL, + `account` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `provider` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci 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; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_captcha_log --- ---------------------------- +-- +-- Dumping data for table `sys_captcha_log` +-- + +/*!40000 ALTER TABLE `sys_captcha_log` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_captcha_log` ENABLE KEYS */; + +-- +-- Table structure for table `sys_config` +-- --- ---------------------------- --- Table structure for sys_config --- ---------------------------- DROP TABLE IF EXISTS `sys_config`; -CREATE TABLE `sys_config` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_config` ( `id` int 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, - `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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, - UNIQUE INDEX `IDX_2c363c25cf99bcaab3a7f389ba`(`key`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + UNIQUE KEY `IDX_2c363c25cf99bcaab3a7f389ba` (`key`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_config --- ---------------------------- -INSERT INTO `sys_config` VALUES (1, 'sys_user_initPassword', '初始密码', '123456', '创建管理员账号的初始密码', '2023-11-10 00:31:44.154921', '2023-11-10 00:31:44.161263'); -INSERT INTO `sys_config` VALUES (2, 'sys_api_token', 'API Token', 'huaxin-admin', '用于请求 @ApiToken 的控制器', '2023-11-10 00:31:44.154921', '2024-01-29 09:52:27.000000'); +-- +-- Dumping data for table `sys_config` +-- + +/*!40000 ALTER TABLE `sys_config` DISABLE KEYS */; +INSERT INTO `sys_config` VALUES (1,'sys_user_initPassword','初始密码','123456','创建管理员账号的初始密码','2023-11-10 00:31:44.154921','2023-11-10 00:31:44.161263'),(2,'sys_api_token','API Token','huaxin-admin','用于请求 @ApiToken 的控制器','2023-11-10 00:31:44.154921','2024-01-29 09:52:27.000000'),(3,'companyName','公司名称','华信智能','菜单侧栏公司的名称','2024-03-06 13:06:47.347660','2024-03-06 13:07:18.000000'),(4,'materials_in_out_prefix','出入库记录开头编号','KC','出入库记录开头编号','2024-03-06 14:50:04.844992','2024-03-06 14:50:04.844992'); +/*!40000 ALTER TABLE `sys_config` ENABLE KEYS */; + +-- +-- Table structure for table `sys_dept` +-- --- ---------------------------- --- Table structure for sys_dept --- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; -CREATE TABLE `sys_dept` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_dept` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, - `orderNo` int NULL DEFAULT 0, - `mpath` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '', - `parentId` int NULL DEFAULT NULL, + `orderNo` int DEFAULT '0', + `mpath` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT '', + `parentId` int 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 = 18 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC; + KEY `FK_c75280b01c49779f2323536db67` (`parentId`) USING BTREE, + CONSTRAINT `FK_c75280b01c49779f2323536db67` FOREIGN KEY (`parentId`) REFERENCES `sys_dept` (`id`) ON DELETE SET NULL +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_dept --- ---------------------------- -INSERT INTO `sys_dept` VALUES (1, '华东分部', 1, '1.', NULL, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (2, '研发部', 1, '1.2.', 1, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (3, '市场部', 2, '1.3.', 1, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (4, '商务部', 3, '1.4.', 1, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (5, '财务部', 4, '1.5.', 1, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (6, '华南分部', 2, '6.', NULL, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (7, '西北分部', 3, '7.', NULL, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (8, '研发部', 1, '6.8.', 6, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); -INSERT INTO `sys_dept` VALUES (9, '市场部', 1, '6.9.', 6, '2023-11-10 00:31:43.996025', '2023-11-10 00:31:44.008709'); +-- +-- Dumping data for table `sys_dept` +-- + +/*!40000 ALTER TABLE `sys_dept` DISABLE KEYS */; +INSERT INTO `sys_dept` VALUES (1,'山东矿机华信智能科技',1,'1.',NULL,'2023-11-10 00:31:43.996025','2024-03-06 17:16:48.000000'),(2,'计算机开发部',1,'1.2.',1,'2023-11-10 00:31:43.996025','2024-03-06 17:16:48.000000'),(3,'行政部',2,'1.3.',1,'2023-11-10 00:31:43.996025','2024-03-06 17:16:48.000000'),(4,'商务部',3,'1.4.',1,'2023-11-10 00:31:43.996025','2024-03-06 17:16:48.000000'),(5,'财务部',4,'1.5.',1,'2023-11-10 00:31:43.996025','2024-03-06 17:16:48.000000'),(6,'山东矿机华能装备制造',2,'6.',NULL,'2023-11-10 00:31:43.996025','2024-03-06 17:17:30.000000'),(8,'研发部',1,'6.8.',6,'2023-11-10 00:31:43.996025','2024-03-06 17:17:30.000000'),(9,'市场部',1,'6.9.',6,'2023-11-10 00:31:43.996025','2024-03-06 17:17:30.000000'); +/*!40000 ALTER TABLE `sys_dept` ENABLE KEYS */; + +-- +-- Table structure for table `sys_dict` +-- --- ---------------------------- --- Table structure for sys_dict --- ---------------------------- DROP TABLE IF EXISTS `sys_dict`; -CREATE TABLE `sys_dict` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_dict` ( `id` int 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 '更新者', `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NOT NULL DEFAULT 1, - `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `status` tinyint NOT NULL DEFAULT '1', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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; + UNIQUE KEY `IDX_d112365748f740ee260b65ce91` (`name`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_dict --- ---------------------------- +-- +-- Dumping data for table `sys_dict` +-- + +/*!40000 ALTER TABLE `sys_dict` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_dict` ENABLE KEYS */; + +-- +-- Table structure for table `sys_dict_item` +-- --- ---------------------------- --- Table structure for sys_dict_item --- ---------------------------- DROP TABLE IF EXISTS `sys_dict_item`; -CREATE TABLE `sys_dict_item` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_dict_item` ( `id` int 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), @@ -121,592 +469,466 @@ CREATE TABLE `sys_dict_item` ( `update_by` int 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, - `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 '字典项排序', + `order` int DEFAULT NULL COMMENT '字典项排序', + `status` tinyint NOT NULL DEFAULT '1', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `type_id` int DEFAULT NULL, + `orderNo` int DEFAULT NULL COMMENT '字典项排序', + `deleted_at` datetime(6) 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 RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + KEY `FK_d68ea74fcb041c8cfd1fd659844` (`type_id`) USING BTREE, + CONSTRAINT `FK_d68ea74fcb041c8cfd1fd659844` FOREIGN KEY (`type_id`) REFERENCES `sys_dict_type` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_dict_item --- ---------------------------- -INSERT INTO `sys_dict_item` VALUES (1, '2024-01-29 01:24:51.846135', '2024-01-29 02:23:19.000000', 1, 1, '男', '1', 0, 1, '性别男', 1, 3); -INSERT INTO `sys_dict_item` VALUES (2, '2024-01-29 01:32:58.458741', '2024-01-29 01:58:20.000000', 1, 1, '女', '0', 1, 1, '性别女', 1, 2); -INSERT INTO `sys_dict_item` VALUES (3, '2024-01-29 01:59:17.805394', '2024-01-29 14:37:18.000000', 1, 1, '人妖王', '3', NULL, 1, '安布里奥·伊万科夫', 1, 0); -INSERT INTO `sys_dict_item` VALUES (5, '2024-01-29 02:13:01.782466', '2024-01-29 02:13:01.782466', 1, 1, '显示', '1', NULL, 1, '显示菜单', 2, 0); -INSERT INTO `sys_dict_item` VALUES (6, '2024-01-29 02:13:31.134721', '2024-01-29 02:13:31.134721', 1, 1, '隐藏', '0', NULL, 1, '隐藏菜单', 2, 0); +-- +-- Dumping data for table `sys_dict_item` +-- + +/*!40000 ALTER TABLE `sys_dict_item` DISABLE KEYS */; +INSERT INTO `sys_dict_item` VALUES (1,'2024-01-29 01:24:51.846135','2024-01-29 02:23:19.000000',1,1,'男','1',0,1,'性别男',1,3,'2024-03-01 15:28:21.702930'),(2,'2024-01-29 01:32:58.458741','2024-01-29 01:58:20.000000',1,1,'女','0',1,1,'性别女',1,2,'2024-03-01 15:28:21.702930'),(3,'2024-01-29 01:59:17.805394','2024-01-29 14:37:18.000000',1,1,'人妖王','3',NULL,1,'安布里奥·伊万科夫',1,0,'2024-03-01 15:28:21.702930'),(5,'2024-01-29 02:13:01.782466','2024-01-29 02:13:01.782466',1,1,'显示','1',NULL,1,'显示菜单',2,0,'2024-03-01 15:28:21.702930'),(6,'2024-01-29 02:13:31.134721','2024-01-29 02:13:31.134721',1,1,'隐藏','0',NULL,1,'隐藏菜单',2,0,'2024-03-01 15:28:21.702930'),(10,'2024-02-28 16:39:44.977246','2024-02-29 15:56:02.670095',1,1,'商务合同','business',NULL,1,'商务合同',3,0,'2024-03-01 15:28:21.702930'),(11,'2024-02-28 16:42:43.539979','2024-02-29 15:56:07.676659',1,1,'销售合同','sales',NULL,1,'',3,1,'2024-03-01 15:28:21.702930'),(12,'2024-02-28 16:42:58.224299','2024-02-29 15:56:05.815675',1,1,'租赁合同','Lease',NULL,1,NULL,3,2,'2024-03-01 15:28:21.702930'),(13,'2024-02-28 16:43:26.311650','2024-02-29 15:56:10.462447',1,1,'服务合同','service',NULL,1,NULL,3,3,'2024-03-01 15:28:21.702930'),(14,'2024-03-04 13:42:26.688441','2024-03-04 13:42:26.688441',1,1,'件','unit_jian',NULL,1,NULL,5,0,'2024-03-04 13:42:26.688441'),(15,'2024-03-04 13:42:38.298733','2024-03-04 13:42:38.298733',1,1,'个','unit_ge',NULL,1,NULL,5,1,'2024-03-04 13:42:38.298733'),(16,'2024-03-04 13:43:30.965353','2024-03-04 13:43:30.965353',1,1,'千克','unit_qianke',NULL,1,NULL,5,2,'2024-03-04 13:43:30.965353'),(17,'2024-03-04 13:43:44.353125','2024-03-04 13:43:44.353125',1,1,'克','unit_ke',NULL,1,NULL,5,3,'2024-03-04 13:43:44.353125'),(18,'2024-03-04 13:43:56.643339','2024-03-04 13:43:56.643339',1,1,'升','unit_sheng',NULL,1,NULL,5,4,'2024-03-04 13:43:56.643339'),(19,'2024-03-04 13:44:09.242901','2024-03-04 13:44:09.242901',1,1,'毫升','unit_haosheng',NULL,1,NULL,5,5,'2024-03-04 13:44:09.242901'),(20,'2024-03-04 13:44:26.620837','2024-03-04 13:44:29.000000',1,1,'卷','unit_juan',NULL,1,NULL,5,6,'2024-03-04 13:44:29.654314'),(21,'2024-03-04 14:10:38.216659','2024-03-04 14:10:54.000000',1,1,'批','unit_pi',NULL,1,NULL,5,7,'2024-03-04 14:10:54.729114'),(22,'2024-03-04 14:10:48.864655','2024-03-04 14:10:48.864655',1,1,'片','unit_pian',NULL,1,NULL,5,8,'2024-03-04 14:10:48.864655'),(23,'2024-03-04 14:11:06.319281','2024-03-04 14:11:06.319281',1,1,'套','unit_tao',NULL,1,NULL,5,9,'2024-03-04 14:11:06.319281'); +/*!40000 ALTER TABLE `sys_dict_item` ENABLE KEYS */; + +-- +-- Table structure for table `sys_dict_type` +-- --- ---------------------------- --- Table structure for sys_dict_type --- ---------------------------- DROP TABLE IF EXISTS `sys_dict_type`; -CREATE TABLE `sys_dict_type` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_dict_type` ( `id` int 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 '更新者', `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NOT NULL DEFAULT 1, - `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `status` tinyint NOT NULL DEFAULT '1', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `deleted_at` datetime(6) 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 = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + UNIQUE KEY `IDX_74d0045ff7fab9f67adc0b1bda` (`code`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_dict_type --- ---------------------------- -INSERT INTO `sys_dict_type` VALUES (1, '2024-01-28 08:19:12.777447', '2024-02-08 13:05:10.000000', 1, 1, '性别', 1, '性别单选', 'sys_user_gender'); -INSERT INTO `sys_dict_type` VALUES (2, '2024-01-28 08:38:41.235185', '2024-01-29 02:11:33.000000', 1, 1, '菜单显示状态', 1, '菜单显示状态', 'sys_show_hide'); +-- +-- Dumping data for table `sys_dict_type` +-- + +/*!40000 ALTER TABLE `sys_dict_type` DISABLE KEYS */; +INSERT INTO `sys_dict_type` VALUES (1,'2024-01-28 08:19:12.777447','2024-02-08 13:05:10.000000',1,1,'性别',1,'性别单选','sys_user_gender','2024-03-01 15:28:21.689753'),(2,'2024-01-28 08:38:41.235185','2024-01-29 02:11:33.000000',1,1,'菜单显示状态',1,'菜单显示状态','sys_show_hide','2024-03-01 15:28:21.689753'),(3,'2024-02-28 16:38:27.311577','2024-03-04 13:26:29.000000',1,1,'合同类型',1,'合同类型','contract_type','2024-03-04 13:26:29.911469'),(5,'2024-03-04 13:41:05.156027','2024-03-04 13:41:05.156027',1,1,'单位',1,'材料盘点表等单位。件。个','unit','2024-03-04 13:41:05.156027'); +/*!40000 ALTER TABLE `sys_dict_type` ENABLE KEYS */; + +-- +-- Table structure for table `sys_login_log` +-- --- ---------------------------- --- Table structure for sys_login_log --- ---------------------------- DROP TABLE IF EXISTS `sys_login_log`; -CREATE TABLE `sys_login_log` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_login_log` ( `id` int 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, + `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `ua` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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 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 = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + KEY `FK_3029712e0df6a28edaee46fd470` (`user_id`) USING BTREE, + CONSTRAINT `FK_3029712e0df6a28edaee46fd470` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_login_log --- ---------------------------- -INSERT INTO `sys_login_log` VALUES (1, '192.168.48.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0', '内网IP', NULL, '2024-02-28 11:49:38.330842', '2024-02-28 11:49:38.330842', 1); +-- +-- Dumping data for table `sys_login_log` +-- + +/*!40000 ALTER TABLE `sys_login_log` DISABLE KEYS */; +INSERT INTO `sys_login_log` VALUES (1,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 11:49:38.330842','2024-02-28 11:49:38.330842',1),(2,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 13:06:01.450911','2024-02-28 13:06:01.450911',1),(3,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 13:08:18.525617','2024-02-28 13:08:18.525617',1),(4,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 13:10:51.368580','2024-02-28 13:10:51.368580',1),(5,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 13:53:17.506614','2024-02-28 13:53:17.506614',1),(6,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-28 13:53:53.201053','2024-02-28 13:53:53.201053',1),(7,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-02-29 16:25:14.762388','2024-02-29 16:25:14.762388',1),(8,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36','内网IP',NULL,'2024-02-29 16:26:09.106911','2024-02-29 16:26:09.106911',1),(9,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 10:52:33.093110','2024-03-01 10:52:33.093110',1),(10,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 10:53:09.633370','2024-03-01 10:53:09.633370',1),(11,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:45:36.933407','2024-03-01 15:45:36.933407',1),(12,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:57:04.780541','2024-03-01 15:57:04.780541',1),(13,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:57:11.280355','2024-03-01 15:57:11.280355',1),(14,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:57:18.351492','2024-03-01 15:57:18.351492',1),(15,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:57:29.111440','2024-03-01 15:57:29.111440',1),(16,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 15:57:33.903797','2024-03-01 15:57:33.903797',1),(17,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-01 16:53:24.824327','2024-03-01 16:53:24.824327',1),(18,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 11:36:22.860536','2024-03-04 11:36:22.860536',1),(19,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 13:14:12.256792','2024-03-04 13:14:12.256792',1),(20,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 13:15:42.383909','2024-03-04 13:15:42.383909',1),(21,'192.168.48.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 13:16:04.702698','2024-03-04 13:16:04.702698',1),(22,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 15:42:54.327613','2024-03-04 15:42:54.327613',1),(23,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-04 17:25:42.137701','2024-03-04 17:25:42.137701',1),(24,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-05 14:34:08.444527','2024-03-05 14:34:08.444527',1),(25,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-06 08:45:04.588314','2024-03-06 08:45:04.588314',1),(26,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-06 17:17:55.139092','2024-03-06 17:17:55.139092',1),(27,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-07 09:14:33.829960','2024-03-07 09:14:33.829960',1),(28,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-07 11:11:38.239629','2024-03-07 11:11:38.239629',1),(29,'127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0','内网IP',NULL,'2024-03-07 11:46:14.622820','2024-03-07 11:46:14.622820',1); +/*!40000 ALTER TABLE `sys_login_log` ENABLE KEYS */; + +-- +-- Table structure for table `sys_menu` +-- --- ---------------------------- --- Table structure for sys_menu --- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; -CREATE TABLE `sys_menu` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +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, + `parent_id` int DEFAULT NULL, + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `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 DEFAULT NULL, + `type` tinyint NOT NULL DEFAULT '0', + `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `order_no` int DEFAULT '0', + `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `keep_alive` tinyint NOT NULL DEFAULT '1', + `show` tinyint NOT NULL DEFAULT '1', + `status` tinyint 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, - `active_menu` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `is_ext` tinyint NOT NULL DEFAULT '0', + `ext_open_mode` tinyint NOT NULL DEFAULT '1', + `active_menu` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 128 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE=InnoDB AUTO_INCREMENT=159 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- 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-01-27 18:53:46.668745', 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, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-27 18:53:44.567023', 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, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-27 18:53:52.967983', 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', 254, '', 1, 1, 1, '2023-11-10 00:31:44.023393', '2024-01-27 18:53:28.327223', 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-01-25 00:59:17.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-02-28 11:51:21.000000', 0, 1, NULL); -INSERT INTO `sys_menu` VALUES (116, 115, 'manage', '文件管理', 'netdisk:manage:list', 1, '', 252, 'netdisk/manage', 0, 1, 1, '2024-02-10 08:03:49.837348', '2024-02-10 09:34:41.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); +-- +-- Dumping data for table `sys_menu` +-- + +/*!40000 ALTER TABLE `sys_menu` DISABLE KEYS */; +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),(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),(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),(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),(5,1,'/system/monitor','系统监控','',0,'ep:monitor',5,'',1,1,1,'2023-11-10 00:31:44.023393','2024-01-27 18:53:44.567023',0,1,NULL),(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),(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),(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),(9,1,'/system/schedule','任务调度','',0,'ant-design:schedule-filled',6,'',1,1,1,'2023-11-10 00:31:44.023393','2024-01-27 18:53:52.967983',0,1,NULL),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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-01-25 00:59:17.000000',0,1,NULL),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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,'字典管理'),(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),(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),(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),(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),(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),(115,NULL,'netdisk','网盘管理',NULL,0,'ant-design:cloud-server-outlined',255,NULL,1,0,1,'2024-02-10 08:00:02.394616','2024-02-28 11:51:21.000000',0,1,NULL),(116,115,'manage','文件管理','netdisk:manage:list',1,'',252,'netdisk/manage',0,1,1,'2024-02-10 08:03:49.837348','2024-02-10 09:34:41.000000',0,1,NULL),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(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),(128,NULL,'/contract','合同管理',NULL,0,'ep:document',1,NULL,1,1,1,'2024-02-29 10:40:39.080419','2024-02-29 10:42:37.000000',0,1,NULL),(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),(130,NULL,'/vehicle-usage/index','车辆使用',NULL,1,'ant-design:car-outlined',4,'vehicle-usage/index',0,1,1,'2024-02-29 10:48:35.035363','2024-03-04 14:18:36.000000',0,1,NULL),(131,150,'/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-03-05 15:22:06.000000',0,1,NULL),(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),(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),(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),(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),(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),(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),(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),(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),(140,150,'/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-05 15:22:22.000000',0,1,NULL),(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),(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),(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),(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),(145,150,'/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-06 13:40:03.000000',0,1,NULL),(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),(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),(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),(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),(150,NULL,'/materials-inventory','原材料盘点',NULL,0,'ant-design:dashboard-outlined',3,NULL,1,1,1,'2024-03-04 16:53:32.172674','2024-03-04 16:53:32.172674',0,1,NULL),(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),(152,150,'/materials-inventory/inventory-check','原材料盘点','app:materials_inventory:list',1,'ant-design:dashboard-outlined',2,'materials-inventory/inventory-check/index',1,0,1,'2024-03-06 13:33:24.795599','2024-03-06 17:14:14.000000',0,1,NULL),(153,150,'/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-07 11:12:00.000000',0,1,NULL),(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),(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),(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),(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),(158,131,NULL,'导出原材料盘点表','app:materials_inventory:export',2,'',255,NULL,1,1,1,'2024-03-07 11:46:54.468400','2024-03-07 11:46:54.468400',0,1,NULL); +/*!40000 ALTER TABLE `sys_menu` ENABLE KEYS */; + +-- +-- Table structure for table `sys_role` +-- --- ---------------------------- --- Table structure for sys_role --- ---------------------------- DROP TABLE IF EXISTS `sys_role`; -CREATE TABLE `sys_role` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_role` ( `id` int 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, + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `status` tinyint 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 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; + UNIQUE KEY `IDX_223de54d6badbe43a5490450c3` (`name`) USING BTREE, + UNIQUE KEY `IDX_05edc0a51f41bb16b7d8137da9` (`value`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_role --- ---------------------------- -INSERT INTO `sys_role` VALUES (1, 'admin', '管理员', '超级管理员', 1, '2023-11-10 00:31:44.058463', '2024-01-28 21:08:39.000000', NULL); -INSERT INTO `sys_role` VALUES (2, 'user', '用户', '', 1, '2023-11-10 00:31:44.058463', '2024-01-30 18:44:45.000000', 1); -INSERT INTO `sys_role` VALUES (9, 'test', '测试', NULL, 1, '2024-01-23 22:46:52.408827', '2024-01-30 01:04:52.000000', NULL); +-- +-- Dumping data for table `sys_role` +-- + +/*!40000 ALTER TABLE `sys_role` DISABLE KEYS */; +INSERT INTO `sys_role` VALUES (1,'admin','管理员','超级管理员',1,'2023-11-10 00:31:44.058463','2024-01-28 21:08:39.000000',NULL),(2,'user','用户','',1,'2023-11-10 00:31:44.058463','2024-01-30 18:44:45.000000',1),(9,'test','测试',NULL,1,'2024-01-23 22:46:52.408827','2024-01-30 01:04:52.000000',NULL); +/*!40000 ALTER TABLE `sys_role` ENABLE KEYS */; + +-- +-- Table structure for table `sys_role_menus` +-- --- ---------------------------- --- Table structure for sys_role_menus --- ---------------------------- DROP TABLE IF EXISTS `sys_role_menus`; -CREATE TABLE `sys_role_menus` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_role_menus` ( `role_id` int NOT NULL, `menu_id` int 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, + PRIMARY KEY (`role_id`,`menu_id`) USING BTREE, + KEY `IDX_35ce749b04d57e226d059e0f63` (`role_id`) USING BTREE, + KEY `IDX_2b95fdc95b329d66c18f5baed6` (`menu_id`) USING BTREE, + CONSTRAINT `FK_2b95fdc95b329d66c18f5baed6d` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`id`) ON DELETE CASCADE, 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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_role_menus --- ---------------------------- -INSERT INTO `sys_role_menus` VALUES (1, 1); -INSERT INTO `sys_role_menus` VALUES (1, 2); -INSERT INTO `sys_role_menus` VALUES (1, 3); -INSERT INTO `sys_role_menus` VALUES (1, 4); -INSERT INTO `sys_role_menus` VALUES (1, 5); -INSERT INTO `sys_role_menus` VALUES (1, 6); -INSERT INTO `sys_role_menus` VALUES (1, 7); -INSERT INTO `sys_role_menus` VALUES (1, 8); -INSERT INTO `sys_role_menus` VALUES (1, 9); -INSERT INTO `sys_role_menus` VALUES (1, 10); -INSERT INTO `sys_role_menus` VALUES (1, 11); -INSERT INTO `sys_role_menus` VALUES (1, 12); -INSERT INTO `sys_role_menus` VALUES (1, 14); -INSERT INTO `sys_role_menus` VALUES (1, 15); -INSERT INTO `sys_role_menus` VALUES (1, 20); -INSERT INTO `sys_role_menus` VALUES (1, 21); -INSERT INTO `sys_role_menus` VALUES (1, 22); -INSERT INTO `sys_role_menus` VALUES (1, 23); -INSERT INTO `sys_role_menus` VALUES (1, 24); -INSERT INTO `sys_role_menus` VALUES (1, 25); -INSERT INTO `sys_role_menus` VALUES (1, 26); -INSERT INTO `sys_role_menus` VALUES (1, 27); -INSERT INTO `sys_role_menus` VALUES (1, 28); -INSERT INTO `sys_role_menus` VALUES (1, 29); -INSERT INTO `sys_role_menus` VALUES (1, 30); -INSERT INTO `sys_role_menus` VALUES (1, 31); -INSERT INTO `sys_role_menus` VALUES (1, 32); -INSERT INTO `sys_role_menus` VALUES (1, 34); -INSERT INTO `sys_role_menus` VALUES (1, 35); -INSERT INTO `sys_role_menus` VALUES (1, 36); -INSERT INTO `sys_role_menus` VALUES (1, 37); -INSERT INTO `sys_role_menus` VALUES (1, 38); -INSERT INTO `sys_role_menus` VALUES (1, 39); -INSERT INTO `sys_role_menus` VALUES (1, 40); -INSERT INTO `sys_role_menus` VALUES (1, 41); -INSERT INTO `sys_role_menus` VALUES (1, 42); -INSERT INTO `sys_role_menus` VALUES (1, 43); -INSERT INTO `sys_role_menus` VALUES (1, 48); -INSERT INTO `sys_role_menus` VALUES (1, 49); -INSERT INTO `sys_role_menus` VALUES (1, 50); -INSERT INTO `sys_role_menus` VALUES (1, 51); -INSERT INTO `sys_role_menus` VALUES (1, 52); -INSERT INTO `sys_role_menus` VALUES (1, 53); -INSERT INTO `sys_role_menus` VALUES (1, 54); -INSERT INTO `sys_role_menus` VALUES (1, 56); -INSERT INTO `sys_role_menus` VALUES (1, 57); -INSERT INTO `sys_role_menus` VALUES (1, 58); -INSERT INTO `sys_role_menus` VALUES (1, 59); -INSERT INTO `sys_role_menus` VALUES (1, 60); -INSERT INTO `sys_role_menus` VALUES (1, 61); -INSERT INTO `sys_role_menus` VALUES (1, 62); -INSERT INTO `sys_role_menus` VALUES (1, 63); -INSERT INTO `sys_role_menus` VALUES (1, 64); -INSERT INTO `sys_role_menus` VALUES (1, 65); -INSERT INTO `sys_role_menus` VALUES (1, 68); -INSERT INTO `sys_role_menus` VALUES (1, 69); -INSERT INTO `sys_role_menus` VALUES (1, 70); -INSERT INTO `sys_role_menus` VALUES (1, 86); -INSERT INTO `sys_role_menus` VALUES (1, 87); -INSERT INTO `sys_role_menus` VALUES (1, 88); -INSERT INTO `sys_role_menus` VALUES (1, 89); -INSERT INTO `sys_role_menus` VALUES (1, 92); -INSERT INTO `sys_role_menus` VALUES (1, 107); -INSERT INTO `sys_role_menus` VALUES (1, 108); -INSERT INTO `sys_role_menus` VALUES (1, 109); -INSERT INTO `sys_role_menus` VALUES (1, 110); -INSERT INTO `sys_role_menus` VALUES (1, 111); -INSERT INTO `sys_role_menus` VALUES (2, 1); -INSERT INTO `sys_role_menus` VALUES (2, 5); -INSERT INTO `sys_role_menus` VALUES (2, 6); -INSERT INTO `sys_role_menus` VALUES (2, 7); -INSERT INTO `sys_role_menus` VALUES (2, 8); -INSERT INTO `sys_role_menus` VALUES (2, 9); -INSERT INTO `sys_role_menus` VALUES (2, 10); -INSERT INTO `sys_role_menus` VALUES (2, 11); -INSERT INTO `sys_role_menus` VALUES (2, 12); -INSERT INTO `sys_role_menus` VALUES (2, 14); -INSERT INTO `sys_role_menus` VALUES (2, 15); -INSERT INTO `sys_role_menus` VALUES (2, 32); -INSERT INTO `sys_role_menus` VALUES (2, 34); -INSERT INTO `sys_role_menus` VALUES (2, 35); -INSERT INTO `sys_role_menus` VALUES (2, 36); -INSERT INTO `sys_role_menus` VALUES (2, 37); -INSERT INTO `sys_role_menus` VALUES (2, 38); -INSERT INTO `sys_role_menus` VALUES (2, 39); -INSERT INTO `sys_role_menus` VALUES (2, 40); -INSERT INTO `sys_role_menus` VALUES (2, 41); -INSERT INTO `sys_role_menus` VALUES (2, 42); -INSERT INTO `sys_role_menus` VALUES (2, 43); -INSERT INTO `sys_role_menus` VALUES (2, 48); -INSERT INTO `sys_role_menus` VALUES (2, 49); -INSERT INTO `sys_role_menus` VALUES (2, 50); -INSERT INTO `sys_role_menus` VALUES (2, 51); -INSERT INTO `sys_role_menus` VALUES (2, 52); -INSERT INTO `sys_role_menus` VALUES (2, 53); -INSERT INTO `sys_role_menus` VALUES (2, 56); -INSERT INTO `sys_role_menus` VALUES (2, 57); -INSERT INTO `sys_role_menus` VALUES (2, 58); -INSERT INTO `sys_role_menus` VALUES (2, 59); -INSERT INTO `sys_role_menus` VALUES (2, 60); -INSERT INTO `sys_role_menus` VALUES (2, 68); -INSERT INTO `sys_role_menus` VALUES (2, 69); -INSERT INTO `sys_role_menus` VALUES (2, 70); -INSERT INTO `sys_role_menus` VALUES (2, 86); -INSERT INTO `sys_role_menus` VALUES (2, 87); -INSERT INTO `sys_role_menus` VALUES (2, 88); -INSERT INTO `sys_role_menus` VALUES (2, 89); -INSERT INTO `sys_role_menus` VALUES (2, 92); -INSERT INTO `sys_role_menus` VALUES (2, 107); -INSERT INTO `sys_role_menus` VALUES (2, 108); -INSERT INTO `sys_role_menus` VALUES (2, 109); -INSERT INTO `sys_role_menus` VALUES (2, 110); -INSERT INTO `sys_role_menus` VALUES (2, 111); -INSERT INTO `sys_role_menus` VALUES (2, 112); -INSERT INTO `sys_role_menus` VALUES (9, 1); -INSERT INTO `sys_role_menus` VALUES (9, 2); -INSERT INTO `sys_role_menus` VALUES (9, 3); -INSERT INTO `sys_role_menus` VALUES (9, 4); -INSERT INTO `sys_role_menus` VALUES (9, 5); -INSERT INTO `sys_role_menus` VALUES (9, 6); -INSERT INTO `sys_role_menus` VALUES (9, 7); -INSERT INTO `sys_role_menus` VALUES (9, 8); -INSERT INTO `sys_role_menus` VALUES (9, 9); -INSERT INTO `sys_role_menus` VALUES (9, 10); -INSERT INTO `sys_role_menus` VALUES (9, 11); -INSERT INTO `sys_role_menus` VALUES (9, 20); -INSERT INTO `sys_role_menus` VALUES (9, 21); -INSERT INTO `sys_role_menus` VALUES (9, 22); -INSERT INTO `sys_role_menus` VALUES (9, 23); -INSERT INTO `sys_role_menus` VALUES (9, 24); -INSERT INTO `sys_role_menus` VALUES (9, 25); -INSERT INTO `sys_role_menus` VALUES (9, 26); -INSERT INTO `sys_role_menus` VALUES (9, 27); -INSERT INTO `sys_role_menus` VALUES (9, 28); -INSERT INTO `sys_role_menus` VALUES (9, 29); -INSERT INTO `sys_role_menus` VALUES (9, 30); -INSERT INTO `sys_role_menus` VALUES (9, 31); -INSERT INTO `sys_role_menus` VALUES (9, 32); -INSERT INTO `sys_role_menus` VALUES (9, 34); -INSERT INTO `sys_role_menus` VALUES (9, 35); -INSERT INTO `sys_role_menus` VALUES (9, 36); -INSERT INTO `sys_role_menus` VALUES (9, 37); -INSERT INTO `sys_role_menus` VALUES (9, 38); -INSERT INTO `sys_role_menus` VALUES (9, 39); -INSERT INTO `sys_role_menus` VALUES (9, 40); -INSERT INTO `sys_role_menus` VALUES (9, 41); -INSERT INTO `sys_role_menus` VALUES (9, 42); -INSERT INTO `sys_role_menus` VALUES (9, 54); -INSERT INTO `sys_role_menus` VALUES (9, 56); -INSERT INTO `sys_role_menus` VALUES (9, 57); -INSERT INTO `sys_role_menus` VALUES (9, 58); -INSERT INTO `sys_role_menus` VALUES (9, 59); -INSERT INTO `sys_role_menus` VALUES (9, 60); -INSERT INTO `sys_role_menus` VALUES (9, 61); -INSERT INTO `sys_role_menus` VALUES (9, 62); -INSERT INTO `sys_role_menus` VALUES (9, 63); -INSERT INTO `sys_role_menus` VALUES (9, 64); -INSERT INTO `sys_role_menus` VALUES (9, 65); -INSERT INTO `sys_role_menus` VALUES (9, 68); -INSERT INTO `sys_role_menus` VALUES (9, 69); -INSERT INTO `sys_role_menus` VALUES (9, 70); -INSERT INTO `sys_role_menus` VALUES (9, 86); -INSERT INTO `sys_role_menus` VALUES (9, 87); -INSERT INTO `sys_role_menus` VALUES (9, 88); -INSERT INTO `sys_role_menus` VALUES (9, 89); -INSERT INTO `sys_role_menus` VALUES (9, 92); +-- +-- Dumping data for table `sys_role_menus` +-- + +/*!40000 ALTER TABLE `sys_role_menus` DISABLE KEYS */; +INSERT INTO `sys_role_menus` VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9),(1,10),(1,11),(1,12),(1,14),(1,15),(1,20),(1,21),(1,22),(1,23),(1,24),(1,25),(1,26),(1,27),(1,28),(1,29),(1,30),(1,31),(1,32),(1,34),(1,35),(1,36),(1,37),(1,38),(1,39),(1,40),(1,41),(1,42),(1,43),(1,48),(1,49),(1,50),(1,51),(1,52),(1,53),(1,54),(1,56),(1,57),(1,58),(1,59),(1,60),(1,61),(1,62),(1,63),(1,64),(1,65),(1,68),(1,69),(1,70),(1,86),(1,87),(1,88),(1,89),(1,92),(1,107),(1,108),(1,109),(1,110),(1,111),(2,1),(2,5),(2,6),(2,7),(2,8),(2,9),(2,10),(2,11),(2,12),(2,14),(2,15),(2,32),(2,34),(2,35),(2,36),(2,37),(2,38),(2,39),(2,40),(2,41),(2,42),(2,43),(2,48),(2,49),(2,50),(2,51),(2,52),(2,53),(2,56),(2,57),(2,58),(2,59),(2,60),(2,68),(2,69),(2,70),(2,86),(2,87),(2,88),(2,89),(2,92),(2,107),(2,108),(2,109),(2,110),(2,111),(2,112),(9,1),(9,2),(9,3),(9,4),(9,5),(9,6),(9,7),(9,8),(9,9),(9,10),(9,11),(9,20),(9,21),(9,22),(9,23),(9,24),(9,25),(9,26),(9,27),(9,28),(9,29),(9,30),(9,31),(9,32),(9,34),(9,35),(9,36),(9,37),(9,38),(9,39),(9,40),(9,41),(9,42),(9,54),(9,56),(9,57),(9,58),(9,59),(9,60),(9,61),(9,62),(9,63),(9,64),(9,65),(9,68),(9,69),(9,70),(9,86),(9,87),(9,88),(9,89),(9,92); +/*!40000 ALTER TABLE `sys_role_menus` ENABLE KEYS */; + +-- +-- Table structure for table `sys_task` +-- --- ---------------------------- --- Table structure for sys_task --- ---------------------------- DROP TABLE IF EXISTS `sys_task`; -CREATE TABLE `sys_task` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_task` ( `id` int 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, - `cron` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `every` int 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, + `type` tinyint NOT NULL DEFAULT '0', + `status` tinyint NOT NULL DEFAULT '1', + `start_time` datetime DEFAULT NULL, + `end_time` datetime DEFAULT NULL, + `limit` int DEFAULT '0', + `cron` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `every` int DEFAULT NULL, + `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `job_opts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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, - UNIQUE INDEX `IDX_ef8e5ab5ef2fe0ddb1428439ef`(`name`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + UNIQUE KEY `IDX_ef8e5ab5ef2fe0ddb1428439ef` (`name`) USING BTREE +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- 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-02-28 11:44:00.000000'); -INSERT INTO `sys_task` VALUES (3, '定时清空任务日志', 'LogClearJob.clearTaskLog', 0, 1, 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-02-28 11:44:00.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\":\"zeyu57@163.com\",\"content\":\"这是正文\"}', NULL, '每月发送邮箱', '2023-11-10 00:31:44.197779', '2023-11-10 00:31:44.206935'); +-- +-- Dumping data for table `sys_task` +-- + +/*!40000 ALTER TABLE `sys_task` DISABLE KEYS */; +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-03-07 11:46:09.000000'),(3,'定时清空任务日志','LogClearJob.clearTaskLog',0,1,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-07 11:46:09.000000'),(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'),(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'); +/*!40000 ALTER TABLE `sys_task` ENABLE KEYS */; + +-- +-- Table structure for table `sys_task_log` +-- --- ---------------------------- --- Table structure for sys_task_log --- ---------------------------- DROP TABLE IF EXISTS `sys_task_log`; -CREATE TABLE `sys_task_log` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_task_log` ( `id` int NOT NULL AUTO_INCREMENT, - `task_id` int NULL DEFAULT NULL, - `status` tinyint NOT NULL DEFAULT 0, - `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `consume_time` int NULL DEFAULT 0, + `task_id` int DEFAULT NULL, + `status` tinyint NOT NULL DEFAULT '0', + `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `consume_time` int 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 = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + KEY `FK_f4d9c36052fdb188ff5c089454b` (`task_id`) USING BTREE, + CONSTRAINT `FK_f4d9c36052fdb188ff5c089454b` FOREIGN KEY (`task_id`) REFERENCES `sys_task` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_task_log --- ---------------------------- -INSERT INTO `sys_task_log` VALUES (1, 3, 1, NULL, 0, '2024-02-05 03:06:22.037448', '2024-02-05 03:06:22.037448'); -INSERT INTO `sys_task_log` VALUES (2, 2, 1, NULL, 0, '2024-02-10 09:42:21.738712', '2024-02-10 09:42:21.738712'); +-- +-- Dumping data for table `sys_task_log` +-- + +/*!40000 ALTER TABLE `sys_task_log` DISABLE KEYS */; +INSERT INTO `sys_task_log` VALUES (1,3,1,NULL,0,'2024-02-05 03:06:22.037448','2024-02-05 03:06:22.037448'),(2,2,1,NULL,0,'2024-02-10 09:42:21.738712','2024-02-10 09:42:21.738712'); +/*!40000 ALTER TABLE `sys_task_log` ENABLE KEYS */; + +-- +-- Table structure for table `sys_user` +-- --- ---------------------------- --- Table structure for sys_user --- ---------------------------- DROP TABLE IF EXISTS `sys_user`; -CREATE TABLE `sys_user` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_user` ( `id` int 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, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `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, + `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `psalt` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` tinyint NULL DEFAULT 1, - `qq` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `status` tinyint DEFAULT '1', + `qq` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci 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, + `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `dept_id` int DEFAULT NULL, 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 = 27 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + UNIQUE KEY `IDX_9e7164b2f1ea1348bc0eb0a7da` (`username`) USING BTREE, + KEY `FK_96bde34263e2ae3b46f011124ac` (`dept_id`) USING BTREE, + CONSTRAINT `FK_96bde34263e2ae3b46f011124ac` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- 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-01-29 09:49:43.000000', 'bqy', 1); -INSERT INTO `sys_user` VALUES (2, 'user', 'dbd89546dec743f82bb9073d6ac39361', 'https://thirdqq.qlogo.cn/g?b=qq&s=100&nk=1743369777', 'luffy@qq.com', '10010', '王路飞', 'qlovDV7pL5dPYPI3QgFFo1HH74nP6sJe', 1, '1743369777', '2023-11-10 00:31:44.104382', '2024-01-29 09:49:57.000000', 'luffy', 8); -INSERT INTO `sys_user` VALUES (8, 'developer', 'f03fa2a99595127b9a39587421d471f6', '/upload/报名照片-202402281149824.jpg', 'nami@qq.com', '10000', '小贼猫', 'NbGM1z9Vhgo7f4dd2I7JGaGP12RidZdE', 1, '1743369777', '2023-11-10 00:31:44.104382', '2024-02-28 11:49:54.000000', '娜美', 7); +-- +-- Dumping data for table `sys_user` +-- + +/*!40000 ALTER TABLE `sys_user` DISABLE KEYS */; +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-03-06 17:18:04.000000','bqy',2),(2,'user','dbd89546dec743f82bb9073d6ac39361','https://thirdqq.qlogo.cn/g?b=qq&s=100&nk=1743369777','luffy@qq.com','10010','王路飞','qlovDV7pL5dPYPI3QgFFo1HH74nP6sJe',1,'1743369777','2023-11-10 00:31:44.104382','2024-03-01 11:31:11.000000','luffy',8),(8,'developer','f03fa2a99595127b9a39587421d471f6','/upload/报名照片-202402281149824.jpg','nami@qq.com','10000','小贼猫','NbGM1z9Vhgo7f4dd2I7JGaGP12RidZdE',1,'1743369777','2023-11-10 00:31:44.104382','2024-03-06 17:17:21.000000','娜美',2); +/*!40000 ALTER TABLE `sys_user` ENABLE KEYS */; + +-- +-- Table structure for table `sys_user_roles` +-- --- ---------------------------- --- Table structure for sys_user_roles --- ---------------------------- DROP TABLE IF EXISTS `sys_user_roles`; -CREATE TABLE `sys_user_roles` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_user_roles` ( `user_id` int NOT NULL, `role_id` int 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, + PRIMARY KEY (`user_id`,`role_id`) USING BTREE, + KEY `IDX_96311d970191a044ec048011f4` (`user_id`) USING BTREE, + KEY `IDX_6d61c5b3f76a3419d93a421669` (`role_id`) USING BTREE, + CONSTRAINT `FK_6d61c5b3f76a3419d93a4216695` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`), 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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of sys_user_roles --- ---------------------------- -INSERT INTO `sys_user_roles` VALUES (1, 1); -INSERT INTO `sys_user_roles` VALUES (2, 2); -INSERT INTO `sys_user_roles` VALUES (8, 2); +-- +-- Dumping data for table `sys_user_roles` +-- + +/*!40000 ALTER TABLE `sys_user_roles` DISABLE KEYS */; +INSERT INTO `sys_user_roles` VALUES (1,1),(2,2),(8,2); +/*!40000 ALTER TABLE `sys_user_roles` ENABLE KEYS */; + +-- +-- Table structure for table `todo` +-- --- ---------------------------- --- Table structure for todo --- ---------------------------- DROP TABLE IF EXISTS `todo`; -CREATE TABLE `todo` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `todo` ( `id` int 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 DEFAULT NULL, + `status` tinyint 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; + KEY `FK_9cb7989853c4cb7fe427db4b260` (`user_id`) USING BTREE, + CONSTRAINT `FK_9cb7989853c4cb7fe427db4b260` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of todo --- ---------------------------- -INSERT INTO `todo` VALUES (1, 'nest.js', NULL, 0, '2023-11-10 00:31:44.139730', '2023-11-10 00:31:44.147629'); +-- +-- Dumping data for table `todo` +-- + +/*!40000 ALTER TABLE `todo` DISABLE KEYS */; +INSERT INTO `todo` VALUES (1,'nest.js',NULL,0,'2023-11-10 00:31:44.139730','2023-11-10 00:31:44.147629'); +/*!40000 ALTER TABLE `todo` ENABLE KEYS */; + +-- +-- Table structure for table `tool_storage` +-- --- ---------------------------- --- Table structure for tool_storage --- ---------------------------- DROP TABLE IF EXISTS `tool_storage`; -CREATE TABLE `tool_storage` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `tool_storage` ( `id` int 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 '文件名', - `fileName` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '真实文件名', - `ext_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `fileName` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '真实文件名', + `ext_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `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, + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `user_id` int DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 80 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; +) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of tool_storage --- ---------------------------- -INSERT INTO `tool_storage` VALUES (78, '2024-02-03 21:41:16.851178', '2024-02-03 21:41:16.851178', 'cfd0d14459bc1a47-202402032141838.jpeg', 'cfd0d14459bc1a47.jpeg', 'jpeg', '/upload/cfd0d14459bc1a47-202402032141838.jpeg', '图片', '33.92 KB', 1); -INSERT INTO `tool_storage` VALUES (79, '2024-02-28 11:49:53.834125', '2024-02-28 11:49:53.834125', '报名照片-202402281149824.jpg', '报名照片.jpg', 'jpg', '/upload/报名照片-202402281149824.jpg', '图片', '8.7 KB', 1); +-- +-- Dumping data for table `tool_storage` +-- + +/*!40000 ALTER TABLE `tool_storage` DISABLE KEYS */; +INSERT INTO `tool_storage` VALUES (121,'2024-03-01 16:46:58.441084','2024-03-01 16:46:58.441084','1709172270328-202403011646430.jpg','1709172270328.jpg','jpg','/upload/1709172270328-202403011646430.jpg','图片','62.79 KB',1),(122,'2024-03-01 17:21:35.454311','2024-03-01 17:21:35.454311','盘点表-202403011721448.xlsx','盘点表.xlsx','xlsx','/upload/盘点表-202403011721448.xlsx','文档','10.83 KB',1),(123,'2024-03-04 15:51:50.664699','2024-03-04 15:51:50.664699','20240304-202403041551657.sql','20240304.sql','sql','/upload/20240304-202403041551657.sql','其他','62.86 KB',1),(124,'2024-03-05 10:39:45.040659','2024-03-05 10:39:45.040659','盘点表-202403051039028.xlsx','盘点表.xlsx','xlsx','/upload/盘点表-202403051039028.xlsx','文档','10.83 KB',1),(126,'2024-03-06 13:04:17.636919','2024-03-06 13:04:17.636919','盘点表-202403061304624.xlsx','盘点表.xlsx','xlsx','/upload/盘点表-202403061304624.xlsx','文档','10.83 KB',1),(127,'2024-03-07 09:35:51.916017','2024-03-07 09:35:51.916017','盘点表-202403070935910.xlsx','盘点表.xlsx','xlsx','/upload/盘点表-202403070935910.xlsx','文档','10.83 KB',1),(128,'2024-03-07 09:36:01.570104','2024-03-07 09:36:01.570104','1709172270328-202403070936565.jpg','1709172270328.jpg','jpg','/upload/1709172270328-202403070936565.jpg','图片','62.86 KB',1); +/*!40000 ALTER TABLE `tool_storage` ENABLE KEYS */; + +-- +-- Table structure for table `user_access_tokens` +-- --- ---------------------------- --- Table structure for user_access_tokens --- ---------------------------- DROP TABLE IF EXISTS `user_access_tokens`; -CREATE TABLE `user_access_tokens` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +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 '令牌过期时间', `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '令牌创建时间', - `user_id` int NULL DEFAULT NULL, + `user_id` int 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; + KEY `FK_e9d9d0c303432e4e5e48c1c3e90` (`user_id`) USING BTREE, + CONSTRAINT `FK_e9d9d0c303432e4e5e48c1c3e90` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of user_access_tokens --- ---------------------------- -INSERT INTO `user_access_tokens` VALUES ('09cf7b0a-62e0-45ee-96b0-e31de32361e0', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDc1MDkxNTd9.0gtKlcxrxQ-TarEai2lsBnfMc852ZDYHeSjjhpo5Fn8', '2024-02-11 04:05:58', '2024-02-10 04:05:57.696509', 1); -INSERT INTO `user_access_tokens` VALUES ('31399cec-e506-4194-a9cc-47f7a1a953a9', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTIxNzh9.Da3j0Ht_zAsPldEYJ18RFYZqTYNhgPxSefCEuXd-4T8', '2024-02-29 11:49:38', '2024-02-28 11:49:38.289991', 1); -INSERT INTO `user_access_tokens` VALUES ('3f7dffae-db1f-47dc-9677-5c956c3de39e', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczMTEzMDJ9.D5Qpht1RquKor8WtgfGAcCp8LwG7z3FZhIwbyQzhDmE', '2024-02-08 21:08:22', '2024-02-07 21:08:22.130066', 1); -INSERT INTO `user_access_tokens` VALUES ('40342c3e-194c-42eb-adee-189389839195', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczNzIxNjF9.tRQOxhB-01Pcut5MXm4L5D1OrbMJfS4LfUys0XB4kWs', '2024-02-09 14:02:41', '2024-02-08 14:02:41.081164', 1); -INSERT INTO `user_access_tokens` VALUES ('9d1ba8e9-dffc-4b15-b21f-4a90f196e39c', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDc1Mjc5MDV9.7LeiS3LBBdiAc7YrULWpmnI1oNSvR79K-qjEOlBYOnI', '2024-02-11 09:18:26', '2024-02-10 09:18:25.656695', 1); -INSERT INTO `user_access_tokens` VALUES ('edbed8fb-bfc7-4fc7-a012-e9fca8ef93fb', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczNzIxMjd9.VRuJHGca2IPrdfTyW09wfhht4x8JX207pKG-0aZyF60', '2024-02-09 14:02:07', '2024-02-08 14:02:07.390658', 1); +-- +-- Dumping data for table `user_access_tokens` +-- + +/*!40000 ALTER TABLE `user_access_tokens` DISABLE KEYS */; +INSERT INTO `user_access_tokens` VALUES ('07276357-6286-478c-8058-d249f4ca4dde','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI4MzIwNH0.CiG2E-GnJlDR_6YJMDkxTJOa-dS29HV5rWNEszn-jeA','2024-03-02 16:53:25','2024-03-01 16:53:24.786130',1),('09cf7b0a-62e0-45ee-96b0-e31de32361e0','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDc1MDkxNTd9.0gtKlcxrxQ-TarEai2lsBnfMc852ZDYHeSjjhpo5Fn8','2024-02-11 04:05:58','2024-02-10 04:05:57.696509',1),('0b95a340-d9eb-4c3a-bd70-2432d3108984','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTUyMzM4Mn0.IA8TwkjfDwmv9470mgVswU775HCRdGo7zCoPblRNgRU','2024-03-05 11:36:23','2024-03-04 11:36:22.819835',1),('17593c96-3779-4f03-8dbc-cb21ac9f7981','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiXSwiaWF0IjoxNzA5MjYxNTUzfQ.hDAHgYrDfsckG6bSyfGa_QLRmo1tvbJEkYgQUfwqZbs','2024-03-02 10:52:33','2024-03-01 10:52:33.059989',1),('19e593f4-4a03-46e0-9b4e-a009af15790a','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTcxNjY3NX0.a0xNnKWIueWIxu5SXAawpLq6Bl4cTD5O6bqLknDU05U','2024-03-07 17:17:55','2024-03-06 17:17:55.105520',1),('1bb9d14e-823c-4f9f-8562-cbc2fd2be318','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTUyOTI1Mn0.-OgIPgXJtFC5ioAu_xpwCY6LRcAyTykXR_1pVrrSCN4','2024-03-05 13:14:12','2024-03-04 13:14:12.192684',1),('31399cec-e506-4194-a9cc-47f7a1a953a9','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTIxNzh9.Da3j0Ht_zAsPldEYJ18RFYZqTYNhgPxSefCEuXd-4T8','2024-02-29 11:49:38','2024-02-28 11:49:38.289991',1),('31875da0-8b93-4ca2-bdb8-ab40c1c059bd','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTg0OX0.g8Rr9eTlEZaghqdd_W5lSyxVV-ZMMnMMkyF2iNrUXpY','2024-03-02 15:57:29','2024-03-01 15:57:29.074445',1),('35fd4bb6-2608-4203-ac2c-9550034993ea','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDk3ODEwOTh9.WmBVjKJkJs1lve9PrYfF8pYWF-qeg8KQu8IeSDSF3Cw','2024-03-08 11:11:38','2024-03-07 11:11:38.199744',1),('367aaa79-1130-4511-87c4-25aacdf27d3d','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTgzOH0.5_K7t6bAuqIO9A8NvgrWACEJUVKduu--1q-rgmAB4Vw','2024-03-02 15:57:18','2024-03-01 15:57:18.314066',1),('3f7dffae-db1f-47dc-9677-5c956c3de39e','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczMTEzMDJ9.D5Qpht1RquKor8WtgfGAcCp8LwG7z3FZhIwbyQzhDmE','2024-02-08 21:08:22','2024-02-07 21:08:22.130066',1),('40342c3e-194c-42eb-adee-189389839195','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczNzIxNjF9.tRQOxhB-01Pcut5MXm4L5D1OrbMJfS4LfUys0XB4kWs','2024-02-09 14:02:41','2024-02-08 14:02:41.081164',1),('4541a9e8-a508-4b92-8ae3-c3744ddcad92','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTUzODE3NH0.Gb_IUruHmd25Wk1ZFHUtB8G2w1bg7i-ivCa11fT8JTw','2024-03-05 15:42:54','2024-03-04 15:42:54.286838',1),('53a08eaa-74fb-45cb-9e6c-514b67346e06','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTU0NDM0Mn0.rcVSgy1s7zNWtB_Q93zdZzL633UFbeH_RWEY_kelVHQ','2024-03-05 17:25:42','2024-03-04 17:25:42.096331',1),('6ea87ca4-89e4-419b-9eb3-7bef4ada53ca','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTUyOTM0Mn0.kLsAfIgUDqNEogqBZWaDt7iUYb4gE4dznjTKoUzSKj0','2024-03-05 13:15:42','2024-03-04 13:15:42.347589',1),('6f3990bd-d093-4cc4-9f9e-cba45260ec42','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkxOTUxMTR9.XvbjbvGNz7pYm-Yol8X3uTDwYkn35i-Fu_LsmMU4PdM','2024-03-01 16:25:15','2024-02-29 16:25:14.725434',1),('78519125-77c1-4768-9644-d8fa639f3ff0','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDk3NzQwNzN9._ZJd1B4EybHlO3W9p98uZ0NJDm6fJur9ifLwEIwywI0','2024-03-08 09:14:34','2024-03-07 09:14:33.765186',1),('7ebc6a49-421c-4437-a7a8-bc8aaeb96b26','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkxOTUxNjl9.oiSa_amY2bX-MaAxL8vs_EmSEyhyBLVJLn9uPf_HgY4','2024-03-01 16:26:09','2024-02-29 16:26:09.075302',1),('8e26aa27-fa67-4b67-8705-019be3e8f1f8','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTY4OTh9.LemwyefdnGCm2ZM2KE3RN2-d6n-Xj2TAujs7iBWaYs8','2024-02-29 13:08:18','2024-02-28 13:08:18.482193',1),('8f7fcaed-c4ed-4cf0-840f-37bcd3a39a59','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTg1M30.woUKWiIQ96woTIFDSdPWkQHwypfTc9T6EqFDbwN56mE','2024-03-02 15:57:34','2024-03-01 15:57:33.866391',1),('9d1ba8e9-dffc-4b15-b21f-4a90f196e39c','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDc1Mjc5MDV9.7LeiS3LBBdiAc7YrULWpmnI1oNSvR79K-qjEOlBYOnI','2024-02-11 09:18:26','2024-02-10 09:18:25.656695',1),('ab62dfc5-46d8-4dad-9055-bb2803d1451c','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTY3NjF9.9C_cPmmiW3Sh5OrPNSnw3h1IoqqLa3GlEYvgNFvv5Rg','2024-02-29 13:06:01','2024-02-28 13:06:01.416655',1),('af43fb31-3759-43d5-b13e-e558bccdca58','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTY4NTkwNH0.eKKbI4Wi7WKSqE-gDt5isFihQze-LOysFntMzyaP5DY','2024-03-07 08:45:05','2024-03-06 08:45:04.541645',1),('b6053fd5-7c7c-453e-a8ea-6de17b30304a','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTcwNTF9.LyR5igCxJhcSnB-pXCc7wJNJ2H1ERdu8LO6d94cMz2c','2024-02-29 13:10:51','2024-02-28 13:10:51.331328',1),('c24acee3-7bbd-4e7a-b8f6-a80be1db0b33','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTgyNH0.6YmdwppJX1DV9-jdFiHLWRH9X_WbeGYbZtaRIizLRgM','2024-03-02 15:57:05','2024-03-01 15:57:04.739116',1),('cbfcc75c-d357-47fd-afbf-db0629885eb6','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTYyMDQ0OH0.LQXYkRJVyDN7YCVRSsS7osGMzC31ik1XD36-SWDbghI','2024-03-06 14:34:08','2024-03-05 14:34:08.374481',1),('cdc3e837-0953-42e7-8296-d27cfbc41353','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTEzNn0.SUycnmUW-ZDjLoBP4DMB_si11dUVHfXmCsG0tLMVBg0','2024-03-02 15:45:37','2024-03-01 15:45:36.880024',1),('d32e25cc-b00c-43cf-94b0-0f61c3314f4c','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI2MTU4OX0.-IM-L0Dt7Jc5xaEU5Q93z5vhAQTpbD9ngS_uhzZ0haI','2024-03-02 10:53:10','2024-03-01 10:53:09.606838',1),('d9044d67-9a95-4bd5-8103-f6ddc9701f83','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTUyOTM2NH0.gEQmOm9E7Adpti0pux6KjtopqZpNy62fZzgWf0Ps1wM','2024-03-05 13:16:05','2024-03-04 13:16:04.665874',1),('e042f0c3-9a35-40cf-83a3-918f617f2ac7','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDk3ODMxNzR9.6jKaSK15fdN8XkToaimiWbqJ-vhiaQr2QkpAc5XvFuA','2024-03-08 11:46:15','2024-03-07 11:46:14.586995',1),('e754d168-106a-43f5-bbf8-80f1b187cb1e','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTk2MzN9.IQ_1NQHKvQ3Cso7cXYQ32xK3qhaOUUF6jtoQ87cN6b0','2024-02-29 13:53:53','2024-02-28 13:53:53.168581',1),('ebc5fbbb-b29e-4a17-acd6-002ca7936099','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiIsInVzZXIiLCJ0ZXN0Il0sImlhdCI6MTcwOTI3OTgzMX0.d29Hn1Ub-YJBv9Xw9Olo7kBNB9ugxcs1P1hrtJEQpJo','2024-03-02 15:57:11','2024-03-01 15:57:11.247365',1),('edbed8fb-bfc7-4fc7-a012-e9fca8ef93fb','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDczNzIxMjd9.VRuJHGca2IPrdfTyW09wfhht4x8JX207pKG-0aZyF60','2024-02-09 14:02:07','2024-02-08 14:02:07.390658',1),('eff3fd41-7307-4027-9f8c-2e3b0fd35051','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjEsInB2IjoxLCJyb2xlcyI6WyJhZG1pbiJdLCJpYXQiOjE3MDkwOTk1OTd9.aLKmV2GGF6pkkolLnJzuq0PXAllSbGIZzJrUR4wlNag','2024-02-29 13:53:17','2024-02-28 13:53:17.473705',1); +/*!40000 ALTER TABLE `user_access_tokens` ENABLE KEYS */; + +-- +-- Table structure for table `user_refresh_tokens` +-- --- ---------------------------- --- Table structure for user_refresh_tokens --- ---------------------------- DROP TABLE IF EXISTS `user_refresh_tokens`; -CREATE TABLE `user_refresh_tokens` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +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 '令牌过期时间', `created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT '令牌创建时间', - `accessTokenId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `accessTokenId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci 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; + UNIQUE KEY `REL_1dfd080c2abf42198691b60ae3` (`accessTokenId`) USING BTREE, + CONSTRAINT `FK_1dfd080c2abf42198691b60ae39` FOREIGN KEY (`accessTokenId`) REFERENCES `user_access_tokens` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; --- ---------------------------- --- Records of user_refresh_tokens --- ---------------------------- -INSERT INTO `user_refresh_tokens` VALUES ('045ad38e-ab82-4ea1-8b61-c2da89060999', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRWMxcEQwZ1VrYnFtZEhyWVdKTDVPIiwiaWF0IjoxNzA5MDkyMTc4fQ.K2nBZ_B8jneihHfs51LIp0fvkkgV7lFawe2cu4sOjN4', '2024-03-29 11:49:38', '2024-02-28 11:49:38.302821', '31399cec-e506-4194-a9cc-47f7a1a953a9'); -INSERT INTO `user_refresh_tokens` VALUES ('202d0969-6721-4f6f-bf34-f0d1931d4d01', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRTRpOXVYei1TdldjdWRnclFXVmFXIiwiaWF0IjoxNzA3MzcyMTYxfQ.NOQufR5EAPE2uZoyenmAj9H7S7qo4d6W1aW2ojDxZQc', '2024-03-09 14:02:41', '2024-02-08 14:02:41.091492', '40342c3e-194c-42eb-adee-189389839195'); -INSERT INTO `user_refresh_tokens` VALUES ('461f9b7c-e500-4762-a6d9-f9ea47163064', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoicXJvTWNYMnhNRW5uRmZGWkQtaUx0IiwiaWF0IjoxNzA3MzExMzAyfQ.dFIWCePZnn2z2Qv1D5PKBKXUwVDI0Gp091MIOi9jiIo', '2024-03-08 21:08:22', '2024-02-07 21:08:22.145464', '3f7dffae-db1f-47dc-9677-5c956c3de39e'); -INSERT INTO `user_refresh_tokens` VALUES ('b375e623-2d82-48f0-9b7a-9058e3850cc6', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoicDhUMzdGNFFaUDJHLU5yNGVha21wIiwiaWF0IjoxNzA3MzcyMTI3fQ.fn3It6RKIxXlKmqixg0BMmY_YsQmAxtetueqW-0y1IM', '2024-03-09 14:02:07', '2024-02-08 14:02:07.410008', 'edbed8fb-bfc7-4fc7-a012-e9fca8ef93fb'); -INSERT INTO `user_refresh_tokens` VALUES ('e620ccc1-9e40-4387-9f21-f0722e535a63', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNE5WdmFIc2hWaU05ZFh0QnVBaHNsIiwiaWF0IjoxNzA3NTI3OTA1fQ.zzyGX0mOJe6KWpTzIi7We9d9c0MRuDeGC86DMB0Vubs', '2024-03-11 09:18:26', '2024-02-10 09:18:25.664251', '9d1ba8e9-dffc-4b15-b21f-4a90f196e39c'); -INSERT INTO `user_refresh_tokens` VALUES ('f9a003e8-91b7-41ee-979e-e39cca3534ec', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiWGJQdl9SVjFtUl80N0o0TGF0QlV5IiwiaWF0IjoxNzA3NTA5MTU3fQ.oEVdWSigTpAQY7F8MlwBnedldH0sJT1YF1Mt0ZUbIw4', '2024-03-11 04:05:58', '2024-02-10 04:05:57.706763', '09cf7b0a-62e0-45ee-96b0-e31de32361e0'); +-- +-- Dumping data for table `user_refresh_tokens` +-- -SET FOREIGN_KEY_CHECKS = 1; +/*!40000 ALTER TABLE `user_refresh_tokens` DISABLE KEYS */; +INSERT INTO `user_refresh_tokens` VALUES ('045ad38e-ab82-4ea1-8b61-c2da89060999','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRWMxcEQwZ1VrYnFtZEhyWVdKTDVPIiwiaWF0IjoxNzA5MDkyMTc4fQ.K2nBZ_B8jneihHfs51LIp0fvkkgV7lFawe2cu4sOjN4','2024-03-29 11:49:38','2024-02-28 11:49:38.302821','31399cec-e506-4194-a9cc-47f7a1a953a9'),('046cd195-a105-493e-9d6c-0d5d87081834','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRlU3a3poeGxNUkhWVUdleDR6VmJTIiwiaWF0IjoxNzA5NjIwNDQ4fQ.UKal8R3pPSiIGPAZFUf78-ne81csm2TwQbRtWIB_B1k','2024-04-04 14:34:08','2024-03-05 14:34:08.406121','cbfcc75c-d357-47fd-afbf-db0629885eb6'),('08f57b8a-6a86-434a-89cf-280255a0d1b6','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiaWxvdmdUWmJueU5RTGR4bmxpc3Y0IiwiaWF0IjoxNzA5MDk2ODk4fQ.v29AorJL9FJVAS89GxtFKeJYc92nPaIpE8O-1GY_nhw','2024-03-29 13:08:18','2024-02-28 13:08:18.499682','8e26aa27-fa67-4b67-8705-019be3e8f1f8'),('157299e9-45e0-4fe3-9caf-ff944644605d','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNVVsRHhFSE1EMnpMVGd4bUNmRnVSIiwiaWF0IjoxNzA5Mjc5MTM2fQ.mbmS1urJdB6YxBdrj1n09-IgARY_LC5lRuTAntVUZlg','2024-03-31 15:45:37','2024-03-01 15:45:36.901193','cdc3e837-0953-42e7-8296-d27cfbc41353'),('1f613862-2567-4c10-8026-c4743c62d01a','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoia1ZZMzl3dnpVLUxmcTFxSjBYVGktIiwiaWF0IjoxNzA5MDk5NTk3fQ.Qjhsglo7PbTsT1_KE3vTMNweHx08dwcz_q1e1f2W9R0','2024-03-29 13:53:17','2024-02-28 13:53:17.487831','eff3fd41-7307-4027-9f8c-2e3b0fd35051'),('202d0969-6721-4f6f-bf34-f0d1931d4d01','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRTRpOXVYei1TdldjdWRnclFXVmFXIiwiaWF0IjoxNzA3MzcyMTYxfQ.NOQufR5EAPE2uZoyenmAj9H7S7qo4d6W1aW2ojDxZQc','2024-03-09 14:02:41','2024-02-08 14:02:41.091492','40342c3e-194c-42eb-adee-189389839195'),('21e28f7b-c156-41bf-902e-583d48109ebf','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoieVU2NU5NSGVuak5lUmozY3BWVDhwIiwiaWF0IjoxNzA5MTk1MTY5fQ.4Vibz4kCF5UulsR9OmAhmQRhrA9idKCyKXCITVLOAkk','2024-03-30 16:26:09','2024-02-29 16:26:09.086894','7ebc6a49-421c-4437-a7a8-bc8aaeb96b26'),('25e9acfd-eb72-4ab8-9e5e-04f0a683e60f','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoibndPOEFIb1hab2d3Y0tpWG41NXlJIiwiaWF0IjoxNzA5Mjc5ODI0fQ._r8VN3caZ5XzEdMpH1FM9e1yVqHuACpknfOeSyixXns','2024-03-31 15:57:05','2024-03-01 15:57:04.755457','c24acee3-7bbd-4e7a-b8f6-a80be1db0b33'),('42cb1246-4a1b-4443-a9b0-926761f13527','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiaVBwVW1FQ0xUTXgzUC1KVUdvaXJaIiwiaWF0IjoxNzA5NTI5MzQyfQ.e6TbYee7T2uEt0GJznuLmlEGYvmT8LWQVk0phYMS6Lw','2024-04-03 13:15:42','2024-03-04 13:15:42.358715','6ea87ca4-89e4-419b-9eb3-7bef4ada53ca'),('46195349-cbf4-492f-b193-7aec06cb556b','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiN1NGYy1PTGNWc1MxVG5BWEdqLW1NIiwiaWF0IjoxNzA5Mjc5ODQ5fQ.n1eSzEGrz_M_hrYNdxx7UtGWHzt7soyJqDh1UK670fE','2024-03-31 15:57:29','2024-03-01 15:57:29.086263','31875da0-8b93-4ca2-bdb8-ab40c1c059bd'),('461f9b7c-e500-4762-a6d9-f9ea47163064','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoicXJvTWNYMnhNRW5uRmZGWkQtaUx0IiwiaWF0IjoxNzA3MzExMzAyfQ.dFIWCePZnn2z2Qv1D5PKBKXUwVDI0Gp091MIOi9jiIo','2024-03-08 21:08:22','2024-02-07 21:08:22.145464','3f7dffae-db1f-47dc-9677-5c956c3de39e'),('4a4a3a33-1308-4fc1-9ffa-f828d875e004','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiLWREemYwWUdXMEhVQXI3RHNqbG9qIiwiaWF0IjoxNzA5NzE2Njc1fQ.ro8DesLH5duC9IBySpMLwtuzC5pMPr1NY6U21Ff4ZHg','2024-04-05 17:17:55','2024-03-06 17:17:55.118361','19e593f4-4a03-46e0-9b4e-a009af15790a'),('4b82a1b7-b571-42de-8809-487f7abc2e65','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiR1BkbUVfTmhjZG5xWnpWX2lGN0JuIiwiaWF0IjoxNzA5NTQ0MzQyfQ.hH2bzYj_8Qim997-C7HNUSJqkk43Z1YAiexpRhxR8cQ','2024-04-03 17:25:42','2024-03-04 17:25:42.114236','53a08eaa-74fb-45cb-9e6c-514b67346e06'),('50b2f3ad-232a-41f6-bf97-2c52127a3e28','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiVnlZNjYwYWNPRHlTd2NZWGhscWdFIiwiaWF0IjoxNzA5Mjc5ODMxfQ.uG0qmKgWzYNvBJFfCvvOmndCgrwpkZ3NVL4aynD6Uxc','2024-03-31 15:57:11','2024-03-01 15:57:11.259022','ebc5fbbb-b29e-4a17-acd6-002ca7936099'),('53c79bc8-f092-4d07-b480-f8637a3887fa','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiOEoyQ0w5RXYtSkhmWW0xSDNMMUxEIiwiaWF0IjoxNzA5MjYxNTg5fQ.3Ez1mfJkLZ9LFo2nTshTtOjs-VN56k1LWNoijWzSYaA','2024-03-31 10:53:10','2024-03-01 10:53:09.615615','d32e25cc-b00c-43cf-94b0-0f61c3314f4c'),('718ccd7b-bb4f-4400-8f40-ccd6141ef4c5','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiamNTcWlzUkFIaW5SOTlUX2lvVzV0IiwiaWF0IjoxNzA5MDk2NzYxfQ.X-iqKmDeV6juqCQC8XjU7o-8CXNxEyLyn5uck4mkJoY','2024-03-29 13:06:01','2024-02-28 13:06:01.430737','ab62dfc5-46d8-4dad-9055-bb2803d1451c'),('9557d0a9-5004-4392-95b6-637b3343dbc3','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiTnNqRGZsMUpKY3RWTzFYaEtEMV9FIiwiaWF0IjoxNzA5NzgzMTc0fQ.osKC1PeUm6LAMj6ZyIuNhUxFcKN1t1ZvrjkE2Rn1pxw','2024-04-06 11:46:15','2024-03-07 11:46:14.600560','e042f0c3-9a35-40cf-83a3-918f617f2ac7'),('9d54c429-5dab-4e72-b70e-d1e6918d364f','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZ1UxYnkxTkVNT05ZQVJsWjBkYzIwIiwiaWF0IjoxNzA5Nzc0MDczfQ.rMG5F7Cec_gcP7C7gr_WL6XiquvuWmvV8Wh2SQOEwuY','2024-04-06 09:14:34','2024-03-07 09:14:33.788438','78519125-77c1-4768-9644-d8fa639f3ff0'),('a2e12448-35b0-487e-a18e-a60461a54370','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZHRvUU9fUjhCZGFOQ1EzMVRhYmxtIiwiaWF0IjoxNzA5NzgxMDk4fQ.3ORghjx3Yzh9_f62tYHLeY_x602pBF-wMrKEVX7Dd2c','2024-04-06 11:11:38','2024-03-07 11:11:38.213630','35fd4bb6-2608-4203-ac2c-9550034993ea'),('a30969f3-b766-4190-b3c6-544f81a05a5a','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiRlRUN0VqRWlfc1RkSXd6cjhGZmtZIiwiaWF0IjoxNzA5NTI5MzY0fQ.5qz5M4MC4nU614Nn8hyW0l1TuGcFNuKRHC_ZYzEZwO8','2024-04-03 13:16:05','2024-03-04 13:16:04.680424','d9044d67-9a95-4bd5-8103-f6ddc9701f83'),('a500bb13-4b9a-4cf2-b691-b046586d9ee7','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoic3R1TDFpUmljTnBlSTlhR0FEUFQwIiwiaWF0IjoxNzA5Mjc5ODUzfQ.oiNGDkAWVr4jko01TY7rqWoOYvCcwZbWpfLCzgtqMHc','2024-03-31 15:57:34','2024-03-01 15:57:33.879108','8f7fcaed-c4ed-4cf0-840f-37bcd3a39a59'),('a8451340-008c-4fa7-bea0-3bdeee5d5cfa','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiVXdDQ2dJeUU1eGpUT1lLRDVtcnU3IiwiaWF0IjoxNzA5MjYxNTUzfQ.dA6eFaURUP0wYU7Pr0Xjv2oFkkfrwQb-cB_gziAK4G4','2024-03-31 10:52:33','2024-03-01 10:52:33.072305','17593c96-3779-4f03-8dbc-cb21ac9f7981'),('b375e623-2d82-48f0-9b7a-9058e3850cc6','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoicDhUMzdGNFFaUDJHLU5yNGVha21wIiwiaWF0IjoxNzA3MzcyMTI3fQ.fn3It6RKIxXlKmqixg0BMmY_YsQmAxtetueqW-0y1IM','2024-03-09 14:02:07','2024-02-08 14:02:07.410008','edbed8fb-bfc7-4fc7-a012-e9fca8ef93fb'),('c92355b8-da11-4e8d-b5a6-0826bb44aac0','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiUlVnM3RtQTBROWZjZ0JZWnJxMXNxIiwiaWF0IjoxNzA5Njg1OTA0fQ.CraA5kdSrHeZhyRchvmZfnfdiPXfjd_4A6FZWPh-r7Y','2024-04-05 08:45:05','2024-03-06 08:45:04.557816','af43fb31-3759-43d5-b13e-e558bccdca58'),('e620ccc1-9e40-4387-9f21-f0722e535a63','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNE5WdmFIc2hWaU05ZFh0QnVBaHNsIiwiaWF0IjoxNzA3NTI3OTA1fQ.zzyGX0mOJe6KWpTzIi7We9d9c0MRuDeGC86DMB0Vubs','2024-03-11 09:18:26','2024-02-10 09:18:25.664251','9d1ba8e9-dffc-4b15-b21f-4a90f196e39c'),('ea877712-28d7-4ee1-97ad-27f4455d59a5','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZUVsNUM2RXZFMjBacENpZnZZalI4IiwiaWF0IjoxNzA5MTk1MTE0fQ.SnF7us-m0ktL6JJIXl8NgNPrsVlHMSN_l5-Nr9L2FeA','2024-03-30 16:25:15','2024-02-29 16:25:14.741842','6f3990bd-d093-4cc4-9f9e-cba45260ec42'),('eb8e0905-8f49-42db-b9f8-771f8d706ab0','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiSEZWTG9xY25UeV84ZGpOWWxZTy02IiwiaWF0IjoxNzA5MDk3MDUxfQ.cC5X2an9Vn4q3NThsqKdA72locR6J10yOCPPqGT_hnc','2024-03-29 13:10:51','2024-02-28 13:10:51.345270','b6053fd5-7c7c-453e-a8ea-6de17b30304a'),('ece48e5b-4a1e-4683-acbc-4da02db0d511','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiai1DZjIyUllQX0taaWpPaFkyV01iIiwiaWF0IjoxNzA5NTM4MTc0fQ.oAUJSvbA2EQbdqnpia8nHiiH7VH6igEHOka9INSnTVE','2024-04-03 15:42:54','2024-03-04 15:42:54.302651','4541a9e8-a508-4b92-8ae3-c3744ddcad92'),('ef3560f5-8f24-4a76-a5e8-c17de1f1fcfe','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiY2VkQ2xZdl9TcTJ2SUEybzZaZS1NIiwiaWF0IjoxNzA5MDk5NjMzfQ.mxekqz0IB_fzwvoBcZyN7BPKezISmd4wPHt7fR7-b3g','2024-03-29 13:53:53','2024-02-28 13:53:53.180619','e754d168-106a-43f5-bbf8-80f1b187cb1e'),('f48bf795-9163-4899-8268-2345a0d2ba4e','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiVjc1SUFMMkhVLUFuTkZINzVFbmhfIiwiaWF0IjoxNzA5Mjc5ODM4fQ.epc14TsoOkTpJOoo1zW9N3qKxiiUTqQ42Sbb455ppAE','2024-03-31 15:57:18','2024-03-01 15:57:18.327929','367aaa79-1130-4511-87c4-25aacdf27d3d'),('f9a003e8-91b7-41ee-979e-e39cca3534ec','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiWGJQdl9SVjFtUl80N0o0TGF0QlV5IiwiaWF0IjoxNzA3NTA5MTU3fQ.oEVdWSigTpAQY7F8MlwBnedldH0sJT1YF1Mt0ZUbIw4','2024-03-11 04:05:58','2024-02-10 04:05:57.706763','09cf7b0a-62e0-45ee-96b0-e31de32361e0'),('faef8e19-55d3-4005-8022-ca735c5c9390','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoia1ZZeXlpQWNJREVTdktFNUhjeER1IiwiaWF0IjoxNzA5NTI5MjUyfQ.IcNLUGhcsxTWIYWxT-0TeII4NbM--Bgq7BJ0VbRfUMo','2024-04-03 13:14:12','2024-03-04 13:14:12.215057','1bb9d14e-823c-4f9f-8562-cbc2fd2be318'),('fb10a7dd-5f84-4151-ab25-b24ec9fca46e','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiMUFzVUdRc3hjZEdnaVhjYkVUcm1WIiwiaWF0IjoxNzA5NTIzMzgyfQ.t2zzBijhlt4cV-p8KElBjJk4TURABI-tKRk-mIkmb4w','2024-04-03 11:36:23','2024-03-04 11:36:22.837030','0b95a340-d9eb-4c3a-bd70-2432d3108984'),('fda03f46-8638-43c1-8417-12ecb1ec7cf7','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNUx1NkJuc1pQeVdtVm1DbHg4MGxwIiwiaWF0IjoxNzA5MjgzMjA0fQ.yAmdtYl3KqMa_R32R2Ht2xxMtQIMpncQ-hFzhzTJTkE','2024-03-31 16:53:25','2024-03-01 16:53:24.799017','07276357-6286-478c-8058-d249f4ca4dde'); +/*!40000 ALTER TABLE `user_refresh_tokens` ENABLE KEYS */; + +-- +-- Table structure for table `vehicle_usage` +-- + +DROP TABLE IF EXISTS `vehicle_usage`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `vehicle_usage` ( + `id` int 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), + `year` int NOT NULL COMMENT '年度', + `vehicle_license` int 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 NOT NULL COMMENT '出行司机', + `current_mileage` int DEFAULT NULL COMMENT '当前车辆里程数(KM)', + `expected_start_date` date DEFAULT NULL COMMENT '预计出行开始时间', + `expected_end_date` date DEFAULT NULL COMMENT '预计出行结束时间', + `purpose` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '使用事由', + `actual_return_time` date DEFAULT NULL COMMENT '实际回司时间', + `return_mileage` int DEFAULT NULL COMMENT '回城车辆里程数(KM)', + `reviewer` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人', + `status` tinyint NOT NULL DEFAULT '0' COMMENT '审核状态(字典)', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `vehicle_usage` +-- + +/*!40000 ALTER TABLE `vehicle_usage` DISABLE KEYS */; +/*!40000 ALTER TABLE `vehicle_usage` ENABLE KEYS */; + +-- +-- Dumping routines for database 'hxoa' +-- +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2024-03-07 12:04:02 diff --git a/deploy/sql/raw_materials_inventory.sql b/deploy/sql/raw_materials_inventory.sql deleted file mode 100644 index 9b313cf..0000000 --- a/deploy/sql/raw_materials_inventory.sql +++ /dev/null @@ -1,23 +0,0 @@ -CREATE TABLE `materials_inventory`( - id INT AUTO_INCREMENT PRIMARY KEY COMMENT 'ID', - company_name VARCHAR(255) COMMENT '公司名称', - product_name VARCHAR(255) COMMENT '产品名称', - unit VARCHAR(50) COMMENT '单位', - previous_inventory_quantity INT COMMENT '之前的库存数量', - previous_unit_price DECIMAL(10, 2) COMMENT '之前的单价', - previous_amount DECIMAL(10, 2) COMMENT '之前的金额', - inventory_time DATETIME COMMENT '入库时间', - inventory_quantity INT COMMENT '入库后数量', - inventory_unit_price DECIMAL(10, 2) COMMENT '入库后单价', - inventory_amount DECIMAL(10, 2) COMMENT '入库金额', - out_time DATETIME COMMENT '出库时间', - out_quantity INT COMMENT '出库数量', - out_unit_price DECIMAL(10, 2) COMMENT '出库单价', - out_amount DECIMAL(10, 2) COMMENT '出库金额', - current_inventory_quantity INT COMMENT '现在的结存数量', - current_unit_price DECIMAL(10, 2) COMMENT '现在的单价', - current_amount DECIMAL(10, 2) COMMENT '现在的金额', - agent VARCHAR(100) COMMENT '经办人', - issuance_number VARCHAR(100) COMMENT '领料单号', - remark VARCHAR(255) COMMENT '备注' -); \ No newline at end of file diff --git a/package.json b/package.json index 732e0dc..9cb7ada 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "crypto-js": "^4.2.0", "dayjs": "^1.11.10", "dotenv": "16.4.4", + "exceljs": "^4.4.0", "handlebars": "^4.7.8", "helmet": "^7.1.0", "ioredis": "^5.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a21d55b..9528f32 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -116,6 +116,9 @@ dependencies: dotenv: specifier: 16.4.4 version: 16.4.4 + exceljs: + specifier: ^4.4.0 + version: 4.4.0 handlebars: specifier: ^4.7.8 version: 4.7.8 @@ -1816,6 +1819,29 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true + /@fast-csv/format@4.3.5: + resolution: {integrity: sha512-8iRn6QF3I8Ak78lNAa+Gdl5MJJBM5vRHivFtMRUWINdevNo00K7OXxS2PshawLKTejVwieIlPmK5YlLu6w4u8A==} + dependencies: + '@types/node': 14.18.63 + lodash.escaperegexp: 4.1.2 + lodash.isboolean: 3.0.3 + lodash.isequal: 4.5.0 + lodash.isfunction: 3.0.9 + lodash.isnil: 4.0.0 + dev: false + + /@fast-csv/parse@4.3.6: + resolution: {integrity: sha512-uRsLYksqpbDmWaSmzvJcuApSEe38+6NQZBUsuAyMZKqHxH0g1wcJgsKUvN3WC8tewaqFjBMMGrkHmC+T7k8LvA==} + dependencies: + '@types/node': 14.18.63 + lodash.escaperegexp: 4.1.2 + lodash.groupby: 4.6.0 + lodash.isfunction: 3.0.9 + lodash.isnil: 4.0.0 + lodash.isundefined: 3.0.1 + lodash.uniq: 4.5.0 + dev: false + /@fastify/accept-negotiator@1.1.0: resolution: {integrity: sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==} engines: {node: '>=14'} @@ -3298,6 +3324,10 @@ packages: '@types/express': 4.17.21 dev: true + /@types/node@14.18.63: + resolution: {integrity: sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==} + dev: false + /@types/node@20.11.18: resolution: {integrity: sha512-ABT5VWnnYneSBcNWYSCuR05M826RoMyMSGiFivXGx6ZUIsXb9vn4643IEwkg2zbEOSgAiSogtapN2fgc4mAPlw==} dependencies: @@ -3900,6 +3930,51 @@ packages: dev: false optional: true + /archiver-utils@2.1.0: + resolution: {integrity: sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==} + engines: {node: '>= 6'} + dependencies: + glob: 7.2.3 + graceful-fs: 4.2.11 + lazystream: 1.0.1 + lodash.defaults: 4.2.0 + lodash.difference: 4.5.0 + lodash.flatten: 4.4.0 + lodash.isplainobject: 4.0.6 + lodash.union: 4.6.0 + normalize-path: 3.0.0 + readable-stream: 2.3.8 + dev: false + + /archiver-utils@3.0.4: + resolution: {integrity: sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==} + engines: {node: '>= 10'} + dependencies: + glob: 7.2.3 + graceful-fs: 4.2.11 + lazystream: 1.0.1 + lodash.defaults: 4.2.0 + lodash.difference: 4.5.0 + lodash.flatten: 4.4.0 + lodash.isplainobject: 4.0.6 + lodash.union: 4.6.0 + normalize-path: 3.0.0 + readable-stream: 3.6.2 + dev: false + + /archiver@5.3.2: + resolution: {integrity: sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==} + engines: {node: '>= 10'} + dependencies: + archiver-utils: 2.1.0 + async: 3.2.5 + buffer-crc32: 0.2.13 + readable-stream: 3.6.2 + readdir-glob: 1.1.3 + tar-stream: 2.2.0 + zip-stream: 4.1.1 + dev: false + /archy@1.0.0: resolution: {integrity: sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==} dev: false @@ -4182,17 +4257,28 @@ packages: resolution: {integrity: sha512-1J5SWbkoVJH9DTALN8igB4p+nPKZzPrJ/HomqBDLpfUvDXCdjdBmBUcH5McZfur0lftVssVU6BZug5NYh87zTw==} dev: false + /big-integer@1.6.52: + resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==} + engines: {node: '>=0.6'} + dev: false + /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} + /binary@0.3.0: + resolution: {integrity: sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==} + dependencies: + buffers: 0.1.1 + chainsaw: 0.1.0 + dev: false + /bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} dependencies: buffer: 5.7.1 inherits: 2.0.4 readable-stream: 3.6.2 - dev: true /block-stream2@2.1.0: resolution: {integrity: sha512-suhjmLI57Ewpmq00qaygS8UgEq2ly2PCItenIyhMqVjo4t4pGzqMvfgJuX8iWTeSDdfSSqS6j38fL4ToNL7Pfg==} @@ -4200,6 +4286,10 @@ packages: readable-stream: 3.6.2 dev: false + /bluebird@3.4.7: + resolution: {integrity: sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==} + dev: false + /boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -4296,6 +4386,10 @@ packages: node-int64: 0.4.0 dev: true + /buffer-crc32@0.2.13: + resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} + dev: false + /buffer-equal-constant-time@1.0.1: resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} dev: false @@ -4309,12 +4403,16 @@ packages: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} dev: true + /buffer-indexof-polyfill@1.0.2: + resolution: {integrity: sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==} + engines: {node: '>=0.10'} + dev: false + /buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} dependencies: base64-js: 1.5.1 ieee754: 1.2.1 - dev: true /buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} @@ -4323,6 +4421,11 @@ packages: ieee754: 1.2.1 dev: false + /buffers@0.1.1: + resolution: {integrity: sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ==} + engines: {node: '>=0.2.0'} + dev: false + /bull@4.12.2: resolution: {integrity: sha512-WPuc0VCYx+cIVMiZtPwRpWyyJFBrj4/OgKJ6n9Jf4tIw7rQNV+HAKQv15UDkcTvfpGFehvod7Fd1YztbYSJIDQ==} engines: {node: '>=12'} @@ -4408,6 +4511,12 @@ packages: resolution: {integrity: sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA==} dev: true + /chainsaw@0.1.0: + resolution: {integrity: sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==} + dependencies: + traverse: 0.3.9 + dev: false + /chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -4756,6 +4865,16 @@ packages: resolution: {integrity: sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==} dev: true + /compress-commons@4.1.2: + resolution: {integrity: sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==} + engines: {node: '>= 10'} + dependencies: + buffer-crc32: 0.2.13 + crc32-stream: 4.0.3 + normalize-path: 3.0.0 + readable-stream: 3.6.2 + dev: false + /concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -5034,7 +5153,6 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - dev: true /cors@2.8.5: resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} @@ -5088,6 +5206,20 @@ packages: typescript: 5.3.3 dev: true + /crc-32@1.2.2: + resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} + engines: {node: '>=0.8'} + hasBin: true + dev: false + + /crc32-stream@4.0.3: + resolution: {integrity: sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==} + engines: {node: '>= 10'} + dependencies: + crc-32: 1.2.2 + readable-stream: 3.6.2 + dev: false + /crc32@0.2.2: resolution: {integrity: sha512-PFZEGbDUeoNbL2GHIEpJRQGheXReDody/9axKTxhXtQqIL443wnNigtVZO9iuCIMPApKZRv7k2xr8euXHqNxQQ==} engines: {node: '>= 0.4.0'} @@ -5549,7 +5681,6 @@ packages: resolution: {integrity: sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==} dependencies: readable-stream: 2.3.8 - dev: true /duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} @@ -6023,6 +6154,21 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} + /exceljs@4.4.0: + resolution: {integrity: sha512-XctvKaEMaj1Ii9oDOqbW/6e1gXknSY4g/aLCDicOXqBE4M0nRWkUu0PTp++UPNzoFY12BNHMfs/VadKIS6llvg==} + engines: {node: '>=8.3.0'} + dependencies: + archiver: 5.3.2 + dayjs: 1.11.10 + fast-csv: 4.3.6 + jszip: 3.10.1 + readable-stream: 3.6.2 + saxes: 5.0.1 + tmp: 0.2.3 + unzipper: 0.10.14 + uuid: 8.3.2 + dev: false + /execa@0.10.0: resolution: {integrity: sha512-7XOMnz8Ynx1gGo/3hyV9loYNPWM94jG3+3T3Y8tsfSstFmETmENCMU/A/zj8Lyaj1lkgEepKepvd6240tBRvlw==} engines: {node: '>=4'} @@ -6126,6 +6272,14 @@ packages: resolution: {integrity: sha512-fBHHqSTFLVnR61C+gltJuE5GkVQMV0S2nqUO8TJ+5Z3qAKG8vAx4FKai1s5jq/inV1+sREynIWSuQ6HgoSXpDQ==} dev: false + /fast-csv@4.3.6: + resolution: {integrity: sha512-2RNSpuwwsJGP0frGsOmTb9oUF+VkFSM4SyLTDgwf2ciHWTarN0lQTC+F2f/t5J9QjW+c65VFIAAu85GsvMIusw==} + engines: {node: '>=10.0.0'} + dependencies: + '@fast-csv/format': 4.3.5 + '@fast-csv/parse': 4.3.6 + dev: false + /fast-decode-uri-component@1.0.1: resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} dev: false @@ -6474,6 +6628,10 @@ packages: resolution: {integrity: sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==} dev: true + /fs-constants@1.0.0: + resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + dev: false + /fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} @@ -6525,6 +6683,16 @@ packages: requiresBuild: true optional: true + /fstream@1.0.12: + resolution: {integrity: sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==} + engines: {node: '>=0.6'} + dependencies: + graceful-fs: 4.2.11 + inherits: 2.0.4 + mkdirp: 0.5.6 + rimraf: 2.6.3 + dev: false + /function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -6770,7 +6938,6 @@ packages: /graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - dev: true /graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} @@ -7033,6 +7200,10 @@ packages: engines: {node: '>= 4'} dev: true + /immediate@3.0.6: + resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} + dev: false + /import-fresh@3.3.0: resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} @@ -7346,7 +7517,6 @@ packages: /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} - dev: true /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -7993,6 +8163,15 @@ packages: promise: 7.3.1 dev: false + /jszip@3.10.1: + resolution: {integrity: sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==} + dependencies: + lie: 3.3.0 + pako: 1.0.11 + readable-stream: 2.3.8 + setimmediate: 1.0.5 + dev: false + /juice@9.1.0: resolution: {integrity: sha512-odblShmPrUoHUwRuC8EmLji5bPP2MLO1GL+gt4XU3tT2ECmbSrrMjtMQaqg3wgMFP2zvUzdPZGfxc5Trk3Z+fQ==} engines: {node: '>=10.0.0'} @@ -8050,6 +8229,13 @@ packages: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} dev: false + /lazystream@1.0.1: + resolution: {integrity: sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==} + engines: {node: '>= 0.6.3'} + dependencies: + readable-stream: 2.3.8 + dev: false + /leac@0.6.0: resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==} dev: false @@ -8104,6 +8290,12 @@ packages: resolution: {integrity: sha512-Ka0eC5LkF3IPNQHJmYBWljJsw0UvM6j+QdKRbWyCdTmYwvIDE6a7bCm0UkTAL/K+3KXK5qXT/ClcInU01OpdLg==} dev: false + /lie@3.3.0: + resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==} + dependencies: + immediate: 3.0.6 + dev: false + /light-my-request@5.11.0: resolution: {integrity: sha512-qkFCeloXCOMpmEdZ/MV91P8AT4fjwFXWaAFz3lUeStM8RcoM1ks4J/F8r1b3r6y/H4u3ACEJ1T+Gv5bopj7oDA==} dependencies: @@ -8121,6 +8313,10 @@ packages: uc.micro: 2.0.0 dev: false + /listenercount@1.0.1: + resolution: {integrity: sha512-3mk/Zag0+IJxeDrxSgaDPy4zZ3w05PRZeJNnlWhzFz5OkX49J4krc+A8X2d2M69vGMBEX0uyl8M+W+8gH+kBqQ==} + dev: false + /load-json-file@4.0.0: resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} engines: {node: '>=4'} @@ -8178,6 +8374,22 @@ packages: resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} dev: false + /lodash.difference@4.5.0: + resolution: {integrity: sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==} + dev: false + + /lodash.escaperegexp@4.1.2: + resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==} + dev: false + + /lodash.flatten@4.4.0: + resolution: {integrity: sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==} + dev: false + + /lodash.groupby@4.6.0: + resolution: {integrity: sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw==} + dev: false + /lodash.includes@4.3.0: resolution: {integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==} dev: false @@ -8190,6 +8402,14 @@ packages: resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==} dev: false + /lodash.isequal@4.5.0: + resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: false + + /lodash.isfunction@3.0.9: + resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} + dev: false + /lodash.isinteger@4.0.4: resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==} dev: false @@ -8198,6 +8418,10 @@ packages: resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} dev: true + /lodash.isnil@4.0.0: + resolution: {integrity: sha512-up2Mzq3545mwVnMhTDMdfoG1OurpA/s5t88JmQX809eH3C8491iu2sfKhTfhQtKY78oPNhiaHJUpT/dUDAAtng==} + dev: false + /lodash.isnumber@3.0.3: resolution: {integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==} dev: false @@ -8209,6 +8433,10 @@ packages: resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} dev: false + /lodash.isundefined@3.0.1: + resolution: {integrity: sha512-MXB1is3s899/cD8jheYYE2V9qTHwKvt+npCwpD+1Sxm3Q3cECXCiYHjeHWXNwr6Q0SOBPrYUDxendrO6goVTEA==} + dev: false + /lodash.map@4.6.0: resolution: {integrity: sha512-worNHGKLDetmcEYDvh2stPCrrQRkP20E4l0iIS7F8EvzMqBBi7ltvFN5m1HvTf1P7Jk1txKhvFcmYsCr8O2F1Q==} dev: true @@ -8231,11 +8459,13 @@ packages: resolution: {integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==} dev: false + /lodash.union@4.6.0: + resolution: {integrity: sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==} + dev: false + /lodash.uniq@4.5.0: resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} requiresBuild: true - dev: true - optional: true /lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -9531,6 +9761,10 @@ packages: resolution: {integrity: sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==} dev: true + /pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + dev: false + /param-case@2.1.1: resolution: {integrity: sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==} dependencies: @@ -9886,7 +10120,6 @@ packages: /process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - dev: true /process-warning@2.3.2: resolution: {integrity: sha512-n9wh8tvBe5sFmsqlg+XQhaQLumwpqoAUruLwjCopgTmUBjJ/fjtBsJzKleCaIGBOMXYEhp1YfKl4d7rJ5ZKJGA==} @@ -10188,7 +10421,6 @@ packages: safe-buffer: 5.1.2 string_decoder: 1.1.1 util-deprecate: 1.0.2 - dev: true /readable-stream@3.6.2: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} @@ -10209,6 +10441,12 @@ packages: string_decoder: 1.3.0 dev: false + /readdir-glob@1.1.3: + resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==} + dependencies: + minimatch: 5.1.6 + dev: false + /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -10405,7 +10643,6 @@ packages: hasBin: true dependencies: glob: 7.2.3 - dev: true /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} @@ -10466,7 +10703,6 @@ packages: /safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} - dev: true /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} @@ -10489,6 +10725,13 @@ packages: resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==} dev: true + /saxes@5.0.1: + resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} + engines: {node: '>=10'} + dependencies: + xmlchars: 2.2.0 + dev: false + /schema-utils@3.3.0: resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} engines: {node: '>= 10.13.0'} @@ -10619,6 +10862,10 @@ packages: has-property-descriptors: 1.0.2 dev: true + /setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + dev: false + /setprototypeof@1.1.0: resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==} dev: true @@ -10981,7 +11228,6 @@ packages: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} dependencies: safe-buffer: 5.1.2 - dev: true /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} @@ -11143,6 +11389,17 @@ packages: engines: {node: '>=6'} dev: true + /tar-stream@2.2.0: + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} + dependencies: + bl: 4.1.0 + end-of-stream: 1.4.4 + fs-constants: 1.0.0 + inherits: 2.0.4 + readable-stream: 3.6.2 + dev: false + /tar@6.2.0: resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==} engines: {node: '>=10'} @@ -11276,6 +11533,11 @@ packages: os-tmpdir: 1.0.2 dev: true + /tmp@0.2.3: + resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==} + engines: {node: '>=14.14'} + dev: false + /tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} dev: true @@ -11307,6 +11569,10 @@ packages: /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + /traverse@0.3.9: + resolution: {integrity: sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==} + dev: false + /traverse@0.6.8: resolution: {integrity: sha512-aXJDbk6SnumuaZSANd21XAo15ucCDE38H4fkqiGsc3MhCK+wOlZvLP9cB/TvpHT0mOyWgC4Z8EwRlzqYSUzdsA==} engines: {node: '>= 0.4'} @@ -11688,6 +11954,21 @@ packages: engines: {node: '>= 0.8'} dev: true + /unzipper@0.10.14: + resolution: {integrity: sha512-ti4wZj+0bQTiX2KmKWuwj7lhV+2n//uXEotUmGuQqrbVZSEGFMbI68+c6JCQ8aAmUWYvtHEz2A8K6wXvueR/6g==} + dependencies: + big-integer: 1.6.52 + binary: 0.3.0 + bluebird: 3.4.7 + buffer-indexof-polyfill: 1.0.2 + duplexer2: 0.1.4 + fstream: 1.0.12 + graceful-fs: 4.2.11 + listenercount: 1.0.1 + readable-stream: 2.3.8 + setimmediate: 1.0.5 + dev: false + /update-browserslist-db@1.0.13(browserslist@4.23.0): resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} hasBin: true @@ -12072,6 +12353,10 @@ packages: utf-8-validate: optional: true + /xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: false + /xmldoc@1.3.0: resolution: {integrity: sha512-y7IRWW6PvEnYQZNZFMRLNJw+p3pezM4nKYPfr15g4OOW9i8VpeydycFuipE2297OvZnh3jSb2pxOt9QpkZUVng==} dependencies: @@ -12145,3 +12430,12 @@ packages: /zepto@1.2.0: resolution: {integrity: sha512-C1x6lfvBICFTQIMgbt3JqMOno3VOtkWat/xEakLTOurskYIHPmzJrzd1e8BnmtdDVJlGuk5D+FxyCA8MPmkIyA==} dev: true + + /zip-stream@4.1.1: + resolution: {integrity: sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==} + engines: {node: '>= 10'} + dependencies: + archiver-utils: 3.0.4 + compress-commons: 4.1.2 + readable-stream: 3.6.2 + dev: false diff --git a/src/modules/materials_inventory/materials_inventory.controller.ts b/src/modules/materials_inventory/materials_inventory.controller.ts index 18a1f27..c615a32 100644 --- a/src/modules/materials_inventory/materials_inventory.controller.ts +++ b/src/modules/materials_inventory/materials_inventory.controller.ts @@ -1,19 +1,26 @@ -import { Body, Controller, Delete, Get, Post, Put, Query } from '@nestjs/common'; +import { Body, Controller, Delete, Get, Param, Post, Put, Query, Res } from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { ApiResult } from '~/common/decorators/api-result.decorator'; import { IdParam } from '~/common/decorators/id-param.decorator'; import { Perm, definePermission } from '../auth/decorators/permission.decorator'; -import { ContractQueryDto, ContractDto, ContractUpdateDto } from '../contract/contract.dto'; +import { + MaterialsInventoryQueryDto, + MaterialsInventoryDto, + MaterialsInventoryUpdateDto, + MaterialsInventoryExportDto +} from '../materials_inventory/materials_inventory.dto'; import { MaterialsInventoryService } from './materials_inventory.service'; import { MaterialsInventoryEntity } from './materials_inventory.entity'; import { ApiSecurityAuth } from '~/common/decorators/swagger.decorator'; +import { FastifyReply } from 'fastify'; export const permissions = definePermission('app:materials_inventory', { LIST: 'list', CREATE: 'create', READ: 'read', UPDATE: 'update', - DELETE: 'delete' + DELETE: 'delete', + EXPORT: 'export' } as const); @ApiTags('MaterialsI Inventory - 原材料盘点') @@ -21,17 +28,28 @@ export const permissions = definePermission('app:materials_inventory', { @Controller('materials-inventory') export class MaterialsInventoryController { constructor(private miService: MaterialsInventoryService) {} + + @Get('export') + @ApiOperation({ summary: '导出原材料盘点表' }) + @Perm(permissions.EXPORT) + async exportMaterialsInventoryCheck( + @Param() dto: MaterialsInventoryExportDto, + @Res() res: FastifyReply + ): Promise { + await this.miService.exportMaterialsInventoryCheck(dto, res); + } + @Get() @ApiOperation({ summary: '获取原材料盘点列表' }) @ApiResult({ type: [MaterialsInventoryEntity], isPage: true }) @Perm(permissions.LIST) - async list(@Query() dto: ContractQueryDto) { + async list(@Query() dto: MaterialsInventoryQueryDto) { return this.miService.findAll(dto); } @Get(':id') @ApiOperation({ summary: '获取原材料盘点信息' }) - @ApiResult({ type: ContractDto }) + @ApiResult({ type: MaterialsInventoryDto }) @Perm(permissions.READ) async info(@IdParam() id: number) { return this.miService.info(id); @@ -40,14 +58,14 @@ export class MaterialsInventoryController { @Post() @ApiOperation({ summary: '新增原材料盘点' }) @Perm(permissions.CREATE) - async create(@Body() dto: ContractDto): Promise { + async create(@Body() dto: MaterialsInventoryDto): Promise { await this.miService.create(dto); } @Put(':id') @ApiOperation({ summary: '更新原材料盘点' }) @Perm(permissions.UPDATE) - async update(@IdParam() id: number, @Body() dto: ContractUpdateDto): Promise { + async update(@IdParam() id: number, @Body() dto: MaterialsInventoryUpdateDto): Promise { await this.miService.update(id, dto); } diff --git a/src/modules/materials_inventory/materials_inventory.dto.ts b/src/modules/materials_inventory/materials_inventory.dto.ts index bee1740..ad49c69 100644 --- a/src/modules/materials_inventory/materials_inventory.dto.ts +++ b/src/modules/materials_inventory/materials_inventory.dto.ts @@ -13,6 +13,9 @@ import { } from 'class-validator'; import { PagerDto } from '~/common/dto/pager.dto'; import { Storage } from '../tools/storage/storage.entity'; +import { Transform } from 'class-transformer'; +import dayjs from 'dayjs'; +import { formatToDate } from '~/utils'; export class MaterialsInventoryDto {} @@ -21,3 +24,21 @@ export class MaterialsInventoryQueryDto extends IntersectionType( PagerDto, PartialType(MaterialsInventoryDto) ) {} +export class MaterialsInventoryExportDto { + @ApiProperty({ description: '项目' }) + @IsOptional() + @IsNumber() + projectId: number; + + @ApiProperty({ description: '导出时间YYYY-MM-DD' }) + @IsOptional() + @Transform(params => { + // 开始和结束时间用的是一月的开始和一月的结束的时分秒 + const date = params.value; + return [ + date ? `${formatToDate(dayjs(date).startOf('month'))} 00:00:00` : null, + date ? `${formatToDate(dayjs(date).endOf('month'))} 23:59:59` : null + ]; + }) + time?: string[]; +} diff --git a/src/modules/materials_inventory/materials_inventory.service.ts b/src/modules/materials_inventory/materials_inventory.service.ts index c45f1e7..d33d5d1 100644 --- a/src/modules/materials_inventory/materials_inventory.service.ts +++ b/src/modules/materials_inventory/materials_inventory.service.ts @@ -4,13 +4,14 @@ import { MaterialsInventoryEntity } from './materials_inventory.entity'; import { EntityManager, Repository } from 'typeorm'; import { MaterialsInventoryDto, + MaterialsInventoryExportDto, MaterialsInventoryQueryDto, MaterialsInventoryUpdateDto } from './materials_inventory.dto'; import { Pagination } from '~/helper/paginate/pagination'; - +import { FastifyReply } from 'fastify'; import { paginate } from '~/helper/paginate'; - +import * as ExcelJS from 'exceljs'; @Injectable() export class MaterialsInventoryService { constructor( @@ -18,6 +19,45 @@ export class MaterialsInventoryService { @InjectRepository(MaterialsInventoryEntity) private materialsInventoryRepository: Repository ) {} + + /** + * 导出原材料盘点表 + */ + async exportMaterialsInventoryCheck(dto: MaterialsInventoryExportDto, res: FastifyReply) { + const workbook = new ExcelJS.Workbook(); + // 创建一个工作表 + const sheet = workbook.addWorksheet('CDKEY'); + // 设置表头 + sheet.columns = [ + { header: '名称', key: 'name', width: 32 }, + { header: '创建人', key: 'create_user', width: 32 }, + { header: '创建时间', key: 'create_time', width: 32 } + ]; + const data = [ + { + name: '名称', + create_user: 'admin', + create_time: '2023-05-18 12:00:00' + } + ]; + data.forEach(item => { + sheet.addRow({ + name: item.name, + create_user: item.create_user, + create_time: item.create_time + }); + }); + + const buffer = await workbook.xlsx.writeBuffer(); + res + .header('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') + .header( + 'Content-Disposition', + `attachment; filename="${encodeURIComponent('导出_excel' + new Date().getTime() + '.xlsx')}"` + ) + .send(buffer); + } + /** * 查询所有盘点信息 */