diff --git a/tldtester/models.py b/tldtester/models.py index 9f2a50e..9a8c466 100644 --- a/tldtester/models.py +++ b/tldtester/models.py @@ -44,3 +44,18 @@ class Meta: models.Index(fields=["dnssec"]), models.Index(fields=["nsamount"]), ] + + +class RootZone(models.Model): + name = models.CharField(max_length=50) + type = models.CharField(max_length=10) + value = models.CharField(max_length=4096) + + def __str__(self): + return self.tld + + class Meta: + indexes = [ + models.Index(fields=["name"]), + models.Index(fields=["type"]), + ]