-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from Bidaya0/1.8.5/structure
1.8.5/structure
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
SET NAMES utf8mb4; | ||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
CREATE TABLE `iast_header_vulnerability` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`project_id` int(11) DEFAULT NULL, | ||
`url` varchar(255) DEFAULT NULL COMMENT 'url地址', | ||
`project_version_id` int(11) DEFAULT NULL, | ||
`vul_id` bigint(20) unsigned DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `iast_header_vulnerability_UN` (`url`,`project_version_id`,`project_id`,`vul_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
CREATE TABLE `iast_header_vulnerability_detail` ( | ||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
`agent_id` bigint(20) unsigned DEFAULT NULL, | ||
`method_pool_id` bigint(20) unsigned DEFAULT NULL, | ||
`header_vul_id` bigint(20) unsigned DEFAULT NULL, | ||
`req_header` text, | ||
`res_header` text, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `iast_header_vulnerability_detail_UN` (`header_vul_id`,`agent_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
|
||
SET FOREIGN_KEY_CHECKS=1; |