Updated README.md
This commit is contained in:
parent
91b786b2b3
commit
ce2ce125cd
44
README.md
44
README.md
|
@ -84,31 +84,31 @@ The database has following collections and relationships between them:
|
||||||
|
|
||||||
1. "projects" -> the collection that lists all projects for which the analysis was performed ("projects" has one-to-many relationship with "vulns")
|
1. "projects" -> the collection that lists all projects for which the analysis was performed ("projects" has one-to-many relationship with "vulns")
|
||||||
|
|
||||||
```
|
```
|
||||||
db.projects.findOne();
|
db.projects.findOne();
|
||||||
{
|
{
|
||||||
_id : "", -> the id of a project (bson id)
|
_id : "", -> the id of a project (bson id)
|
||||||
name : "", -> the name of a project (e.g., "Tomcat")
|
name : "", -> the name of a project (e.g., "Tomcat")
|
||||||
repo_type : "", -> the type of its source repository (e.g., "git")
|
repo_type : "", -> the type of its source repository (e.g., "git")
|
||||||
repo_path : "", -> the path of the repository (e.g., "/home/user/tomcat")
|
repo_path : "", -> the path of the repository (e.g., "/home/user/tomcat")
|
||||||
vulns : [ -> the list of CVEs for which an analysis was performed
|
vulns : [ -> the list of CVEs for which an analysis was performed
|
||||||
vuln_id : "", (e.g,. "CVE-2014-0230", ...)
|
vuln_id : "", (e.g,. "CVE-2014-0230", ...)
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
2. "vulns" -> the collection that lists all CVEs for which the analysis was performed ("vulns" has one-to-gazillion relationship with "entries")
|
2. "vulns" -> the collection that lists all CVEs for which the analysis was performed ("vulns" has one-to-gazillion relationship with "entries")
|
||||||
|
|
||||||
```
|
```
|
||||||
db.vulns.findOne();
|
db.vulns.findOne();
|
||||||
{
|
{
|
||||||
_id : "", -> the id of a CVE (bson id)
|
_id : "", -> the id of a CVE (bson id)
|
||||||
cve : "", -> the name of a CVE
|
cve : "", -> the name of a CVE
|
||||||
owner_id : "", -> the bson id of a corresponding project
|
owner_id : "", -> the bson id of a corresponding project
|
||||||
fix_commit : "", -> the id of a commit that fixed the CVE
|
fix_commit : "", -> the id of a commit that fixed the CVE
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
3. "entries" -> the collection that lists vulnerability evidence entries
|
3. "entries" -> the collection that lists vulnerability evidence entries
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue