From b8651bfb2150823d1c794ce4cf35bcb1d0c9c901 Mon Sep 17 00:00:00 2001 From: "LAPTOP-0SF788NU\\admin" <3306174053@qq.com> Date: Thu, 14 Sep 2023 10:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E5=80=9F=E9=98=85=E7=94=B3?= =?UTF-8?q?=E8=AF=B7,=E6=A1=A3=E6=A1=88=E5=88=86=E7=B1=BB=20sql=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=87=AA=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/borrow_apply20230913JS.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/borrow_apply20230913JS.sql b/sql/borrow_apply20230913JS.sql index 94d7cf80..1bb723f7 100644 --- a/sql/borrow_apply20230913JS.sql +++ b/sql/borrow_apply20230913JS.sql @@ -1,6 +1,6 @@ -- 新增 借阅申请表 CREATE TABLE `lyr-one`.`archives_borrow_apply` ( - `id` bigint(20) NOT NULL COMMENT '借阅id', + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '借阅id', `borrow_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅申请编码', `borrow_state` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅申请状态 0:已通过 1驳回', `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅事由', @@ -20,7 +20,7 @@ CREATE TABLE `lyr-one`.`archives_borrow_apply` ( `update_time` datetime NULL DEFAULT NULL COMMENT '修改日期', `deleted` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '逻辑删除', PRIMARY KEY (`id`) USING BTREE -) ENGINE = MyISAM CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档案借阅申请表' ROW_FORMAT = Dynamic; +) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档案借阅申请表' ROW_FORMAT = Dynamic; INSERT INTO `lyr-one`.`system_menu` (`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES ( '借阅', '', 1, 0, 0, '/borrow', 'component', NULL, NULL, 0, b'1', b'1', b'1', '', '2023-09-13 15:27:06', '', '2023-09-13 15:27:16', b'0'); @@ -38,7 +38,7 @@ INSERT INTO `lyr-one`.`system_menu` ( `name`, `permission`, `type`, `sort`, `par -- 新增档案分类表 CREATE TABLE `lyr-one`.`setting_file_category` ( - `id` bigint(20) NOT NULL COMMENT 'id', + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `category_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档案类型编码', `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '档案类型父id', `type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型名称', @@ -52,7 +52,7 @@ CREATE TABLE `lyr-one`.`setting_file_category` ( `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '制单人', `deleted` tinyint(1) NULL DEFAULT NULL COMMENT '逻辑删除', PRIMARY KEY (`id`) USING BTREE -) ENGINE = MyISAM CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档案分类表' ROW_FORMAT = Dynamic; +) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档案分类表' ROW_FORMAT = Dynamic; -- 查询档案设置id进行赋值 SELECT `id` INTO @menuId FROM system_menu WHERE `name` = '档案设置';