This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
er.html
185 lines (185 loc) · 5.16 KB
/
er.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div class="mermaid" id="er-diagram">
erDiagram
Adapter {
int id
string name
string tag
adapterDOTType type
jsonDOTRawMessage operation
adapterDOTResultsType results_type
LBRACKRBRACKbyte results
}
Artifact {
int id
string name
string sha256
artifactDOTType type
timeDOTTime time
}
CodeIssue {
int id
string rule_id
string message
codeissueDOTSeverity severity
codeissueDOTType type
}
CodeScan {
int id
string tool
timeDOTTime time
}
Component {
int id
string name
string vendor
string version
string description
string url
}
GitCommit {
int id
string hash
string branch
string tag
timeDOTTime time
}
License {
int id
string spdx_id
string name
string reference
string details_url
bool is_osi_approved
}
LicenseUse {
int id
}
Project {
int id
string name
}
Release {
int id
string name
string version
releaseDOTStatus status
}
ReleaseComponent {
int id
releasecomponentDOTType type
}
ReleaseEntry {
int id
releaseentryDOTType type
timeDOTTime time
}
ReleaseLicense {
int id
}
ReleasePolicy {
int id
string name
string module
}
ReleasePolicyViolation {
int id
string message
releasepolicyviolationDOTSeverity severity
}
ReleaseVulnerability {
int id
}
Repo {
int id
string name
string default_branch
}
TestCase {
int id
string name
bool result
string message
float64 elapsed
}
TestRun {
int id
string tool
timeDOTTime time
}
Vulnerability {
int id
string vid
string summary
string description
float64 severity_score
vulnerabilityDOTSeverity severity
timeDOTTime published
timeDOTTime modified
}
VulnerabilityReview {
int id
string name
vulnerabilityreviewDOTDecision decision
}
Artifact }o--o| Release : "release/artifacts"
CodeIssue }o--o| CodeScan : "scan/issues"
CodeScan }o--o| Release : "release/code_scans"
Component }o--o{ Vulnerability : "vulnerabilities/components"
Component }o--o{ License : "licenses/components"
GitCommit }o--o| Repo : "repo/commits"
GitCommit |o--o| Release : "release/commit"
LicenseUse }o--o| License : "license/uses"
Release }o--o{ Release : "dependencies/subreleases"
ReleaseComponent }o--o| Release : "release/components"
ReleaseComponent }o--o{ CodeScan : "scans/components"
ReleaseComponent }o--o| Component : "component/uses"
ReleaseEntry |o--o| Artifact : "artifact/entry"
ReleaseEntry |o--o| CodeScan : "code_scan/entry"
ReleaseEntry |o--o| TestRun : "test_run/entry"
ReleaseEntry }o--o| Release : "release/log"
ReleaseLicense }o--o| License : "license"
ReleaseLicense }o--o| ReleaseComponent : "component"
ReleaseLicense }o--o| Release : "release"
ReleaseLicense |o--o{ CodeScan : "scans"
ReleasePolicy }o--o{ Project : "projects/policies"
ReleasePolicy }o--o{ Repo : "repos/policies"
ReleasePolicyViolation }o--o| ReleasePolicy : "policy/violations"
ReleasePolicyViolation }o--o| Release : "release/violations"
ReleaseVulnerability }o--o| Vulnerability : "vulnerability/instances"
ReleaseVulnerability }o--o| ReleaseComponent : "component/vulnerabilities"
ReleaseVulnerability }o--o| Release : "release/vulnerabilities"
ReleaseVulnerability }o--o{ VulnerabilityReview : "reviews/instances"
ReleaseVulnerability }o--o| CodeScan : "scan/vulnerabilities"
Repo }o--o| Project : "project/repos"
Repo |o--o| Release : "head/head_of"
TestCase }o--o| TestRun : "run/tests"
TestRun }o--o| Release : "release/test_runs"
VulnerabilityReview }o--o| Vulnerability : "vulnerability/reviews"
VulnerabilityReview }o--o{ Project : "projects/vulnerability_reviews"
VulnerabilityReview }o--o{ Repo : "repos/vulnerability_reviews"
VulnerabilityReview }o--o{ Release : "releases/vulnerability_reviews"
</div>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
mermaid.mermaidAPI.initialize({
startOnLoad: true,
});
var observer = new MutationObserver((event) => {
document.querySelectorAll('text[id^=entity]').forEach(text => {
text.textContent = text.textContent.replace('DOT', '.');
text.textContent = text.textContent.replace('STAR', '*');
text.textContent = text.textContent.replace('LBRACK', '[');
text.textContent = text.textContent.replace('RBRACK', ']');
});
observer.disconnect();
});
observer.observe(document.getElementById('er-diagram'), { attributes: true, childList: true });
</script>
</body>
</html>