from django.db import models
from vulnerabilities import Vulnerability


class Report(models.Model):  # Relatorios
    scan = models.ForeignKey('core.Scan', related_name='malware_report')
    created_at = models.DateTimeField()
    updated_at = models.DateTimeField()

    class Meta:
        app_label = 'malware'


class ReportVulnerability(models.Model):  # Scan
    report = models.ForeignKey(Report)
    vulnerability = models.ForeignKey(Vulnerability)

    class Meta:
        app_label = 'malware'
