adding RootZone database

This commit is contained in:
Arnold Dechamps 2024-02-26 06:29:59 +01:00
parent 575959e960
commit 1f8041e52a
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -44,3 +44,18 @@ class TLD(models.Model):
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"]),
]