fix(SQL提交): 误报库SQL提交

误报库SQL提交
This commit is contained in:
song-tianyang 2021-12-31 14:52:23 +08:00 committed by song-tianyang
parent f2730dc27f
commit 02965188c3
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
CREATE TABLE IF NOT EXISTS `error_report_library` (
`id` varchar(50) NOT NULL COMMENT 'Test ID',
`project_id` varchar(50) NOT NULL COMMENT 'Project ID this report belongs to',
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
`create_user` varchar(64) DEFAULT NULL COMMENT 'User ID',
`update_user` varchar(64) DEFAULT NULL COMMENT 'User ID',
`error_code` varchar(255) NOT NULL COMMENT 'error code',
`match_type` varchar(255) NOT NULL COMMENT 'match type',
`status` tinyint(1) NULL DEFAULT NULL COMMENT 'status',
content longtext COMMENT 'content',
`description` longtext COMMENT 'report content',
PRIMARY KEY (`id`),
INDEX `project_id` (`project_id`) USING BTREE,
INDEX `project_id_status` (`project_id`,`status`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
-- 赋予admin默认的权限
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ', 'PROJECT_ERROR_REPORT_LIBRARY');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+CREATE', 'PROJECT_ERROR_REPORT_LIBRARY');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+EDIT', 'PROJECT_ERROR_REPORT_LIBRARY');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+DELETE', 'PROJECT_ERROR_REPORT_LIBRARY');