diff --git a/sql/mysql/Ureport.sql b/sql/mysql/Ureport.sql index b1c11afc0..f75efb874 100644 --- a/sql/mysql/Ureport.sql +++ b/sql/mysql/Ureport.sql @@ -4,7 +4,7 @@ INSERT INTO system_menu( path, icon, component, status, component_name ) VALUES ( - 'Ureport2报表管理', '', 2, 0, 1281, + 'Ureport2报表', '', 2, 0, 1281, 'ureport-file', '', 'report/ureport/index', 0, 'UreportFile' ); @@ -55,6 +55,7 @@ VALUES ( ); +-- 创建数据库表 DROP TABLE IF EXISTS `ureport_file`; CREATE TABLE `ureport_file` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', @@ -70,3 +71,7 @@ CREATE TABLE `ureport_file` ( `tenant_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '租户编号', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'Ureport2报表' ROW_FORMAT = Dynamic; + + +-- 插入测试报表 +INSERT INTO `ureport_file` (`id`, `file_name`, `status`, `file_content`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (7, '角色对应的用户列表.ureport.xml', 0, '', NULL, NULL, '2023-11-22 22:02:44', NULL, '2023-11-22 22:06:51', b'0', 0);