mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-17 23:37:47 +02:00
12 lines
397 B
Python
12 lines
397 B
Python
from django.db import models
|
|
from targetApp.models import Domain
|
|
from scanEngine.models import EngineType
|
|
|
|
class SubdomainModel(models.Model):
|
|
last_scan_date = models.DateTimeField()
|
|
domain_name = models.ForeignKey(Domain, on_delete=models.CASCADE)
|
|
scan_type = models.ForeignKey(EngineType, on_delete=models.CASCADE)
|
|
|
|
def __str__(self):
|
|
return self.domain_name.domain_name
|