toolshed/backend/hostadmin/models.py

20 lines
626 B
Python
Raw Normal View History

2023-06-15 18:55:33 +00:00
from django.db import models
class Domain(models.Model):
name = models.CharField(max_length=255, unique=True)
owner = models.ForeignKey('authentication.ToolshedUser', on_delete=models.CASCADE, related_name='domains')
open_registration = models.BooleanField(default=False)
def __str__(self):
return self.name
2023-10-22 20:46:55 +00:00
class ImportedIdentifierSets(models.Model):
name = models.CharField(max_length=255, unique=True)
2024-03-11 16:37:56 +00:00
hash = models.CharField(max_length=255, unique=True)
2023-10-22 20:46:55 +00:00
created_at = models.DateTimeField(auto_now_add=True)
2024-03-11 16:37:56 +00:00
class Meta:
verbose_name_plural = 'imported identifier sets'