Skip to content

Commit

Permalink
adding RootZone database
Browse files Browse the repository at this point in the history
  • Loading branch information
altf4arnold committed Feb 26, 2024
1 parent 575959e commit 1f8041e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tldtester/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
]

0 comments on commit 1f8041e

Please sign in to comment.