package com.psg.dlsysinfo.dl_sysinfo_server.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = "cpe_matches")
@Getter
@Setter
@NoArgsConstructor
public class CpeMatch {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ManyToOne
    @JoinColumn(name = "cve_id", referencedColumnName = "id")
    private Cve cve;

    @Column(name = "cpe_uri", columnDefinition = "TEXT")
    private String cpeUri;

    @Column(name = "version_start")
    private String versionStart;

    @Column(name = "version_end")
    private String versionEnd;

    private Boolean vulnerable;

    private String vendor;
    private String product;
    private String version;
}
