from django.db import models
from datetime import datetime


# Create your models here.

class Exploit(models.Model):
    text = models.CharField(max_length=300)
    insert_date = models.DateTimeField(default=datetime.now)
    update_date = models.DateTimeField('date_ins')


class ExploitDetail(models.Model):
    exploit_id = models.ForeignKey(Exploit, on_delete=models.CASCADE)
    text = models.CharField(max_length=300)
    insert_date = models.DateTimeField(default=datetime.now)
    update_date = models.DateTimeField('date_ins')
