|
|
|
@ -1,27 +1,28 @@
|
|
|
|
|
-- 新增 借阅申请表
|
|
|
|
|
CREATE TABLE `lyr-one`.`archives_borrow_apply` (
|
|
|
|
|
`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 '借阅事由',
|
|
|
|
|
`describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅描述',
|
|
|
|
|
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '借阅人id',
|
|
|
|
|
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅人名称',
|
|
|
|
|
`dept_id` bigint(11) NULL DEFAULT NULL COMMENT '借阅部门id',
|
|
|
|
|
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅部门名称',
|
|
|
|
|
`return_time` datetime NULL DEFAULT NULL COMMENT '预计归还日期',
|
|
|
|
|
`way` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅方式 0:外接 1:现场查阅',
|
|
|
|
|
`media` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档案介质',
|
|
|
|
|
`company_id` bigint(20) NULL DEFAULT NULL COMMENT '业务实体id',
|
|
|
|
|
`company` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务实体名称',
|
|
|
|
|
`tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '租户编号',
|
|
|
|
|
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
|
|
|
|
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime NULL DEFAULT NULL COMMENT '修改日期',
|
|
|
|
|
`deleted` bit(1) NULL DEFAULT b'0' COMMENT '是否删除',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档案借阅申请表' ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
`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(255) 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 '借阅事由',
|
|
|
|
|
`describes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅描述',
|
|
|
|
|
`user_id` bigint(20) NULL DEFAULT NULL COMMENT '借阅人id',
|
|
|
|
|
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅人名称',
|
|
|
|
|
`dept_id` bigint(11) NULL DEFAULT NULL COMMENT '借阅部门id',
|
|
|
|
|
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅部门名称',
|
|
|
|
|
`return_time` datetime NULL DEFAULT NULL COMMENT '预计归还日期',
|
|
|
|
|
`way` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '借阅方式 0:外接 1:现场查阅',
|
|
|
|
|
`media` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档案介质',
|
|
|
|
|
`company_id` bigint(20) NULL DEFAULT NULL COMMENT '业务实体id',
|
|
|
|
|
`company` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务实体名称',
|
|
|
|
|
`tenant_id` bigint(20) NULL DEFAULT NULL COMMENT '租户编号',
|
|
|
|
|
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
|
|
|
|
|
`create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
|
|
|
|
|
`update_time` datetime NULL DEFAULT NULL COMMENT '修改日期',
|
|
|
|
|
`deleted` bit(1) NULL DEFAULT b'0' COMMENT '是否删除',
|
|
|
|
|
`creator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
|
|
|
|
|
`updater` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = MyISAM AUTO_INCREMENT = 2 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');
|
|
|
|
|
SET @menuId = LAST_INSERT_ID();
|
|
|
|
|