|
|
|
@ -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` = '档案设置';
|
|
|
|
|