Introduce archival related entities

What does this MR do and why?

In this MR, we are introducing the required entities for the vulnerability archival process. We have decided to store the archived vulnerabilities in the database for the following reasons;

  1. This will make it possible to archive vulnerabilities inside of a transaction to prevent data loss.
  2. We will store the archived vulnerability information in the database but this is still beneficial because;
    • We are not going to store all the vulnerability information which means we will save some space
    • The table that holds the archived vulnerability data will have fewer indices than the original tables so it will reduce the index maintenance work.
    • The records stored in the archive table will be immutable which means once they are created, there will be no update operation which reduces the index maintenance work as well.

Related to Introduce vulnerability archival process relate... (#515468 - closed).

Edited by Mehmet Emin INAC

Merge request reports

Loading