diff --git a/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java b/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java index 306b3b7..af35bac 100644 --- a/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java +++ b/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java @@ -13,6 +13,12 @@ public class SourcePackageCve { @Column(name = "cve_id", nullable = false) private String cveId; + @Column(name = "base_score", nullable = true) + private float baseScore; + + @Column(name = "vector_string", nullable = true) + private String vectorString; + @Column(name = "source_package_name", nullable = false) private String sourcePackageName; @@ -31,8 +37,10 @@ public class SourcePackageCve { public SourcePackageCve() { } - public SourcePackageCve(String cveId, @Nonnull String sourcePackageName, @Nonnull String sourcePackageVersion, @Nonnull String gardenlinuxVersion, boolean isVulnerable, @Nonnull String cvePublishedDate) { + public SourcePackageCve(String cveId, float baseScore, String vectorString, String sourcePackageName, String sourcePackageVersion, String gardenlinuxVersion, boolean isVulnerable, String cvePublishedDate) { this.cveId = cveId; + this.baseScore = baseScore; + this.vectorString = vectorString; this.sourcePackageName = sourcePackageName; this.sourcePackageVersion = sourcePackageVersion; this.gardenlinuxVersion = gardenlinuxVersion; @@ -44,17 +52,18 @@ public String getCveId() { return cveId; } - @Nonnull + public float getBaseScore() { + return baseScore; + } + public String getSourcePackageName() { return sourcePackageName; } - @Nonnull public String getSourcePackageVersion() { return sourcePackageVersion; } - @Nonnull public String getGardenlinuxVersion() { return gardenlinuxVersion; } @@ -63,8 +72,11 @@ public boolean isVulnerable() { return isVulnerable; } - @Nonnull public String getCvePublishedDate() { return cvePublishedDate; } + + public String getVectorString() { + return vectorString; + } } \ No newline at end of file