+
+class Institution(models.Model):
+ name = models.TextField()
+ # list of associated email domains
+
+class PendingUser(models.Model):
+ # NOTE We might consider migrating the fields to CharField, which would
+ # simplify form creation in forms.py
+ first_name = models.TextField()
+ last_name = models.TextField()
+ email = models.EmailField() #validators=[validate_email])
+ password = models.TextField()
+ keypair = models.TextField()
+ authority_hrn = models.TextField()
+ login = models.TextField()
+ pi = models.TextField()
+ created = models.DateTimeField(auto_now_add = True)
+ # models.ForeignKey(Institution)
+
+class PendingAuthority(models.Model):
+ site_name = models.TextField()
+ site_authority = models.TextField()
+ site_abbreviated_name = models.TextField()
+ site_url = models.TextField()
+ site_latitude = models.TextField()
+ site_longitude = models.TextField()
+ address_line1 = models.TextField()
+ address_line2 = models.TextField()
+ address_line3 = models.TextField()
+ address_city = models.TextField()
+ address_postalcode = models.TextField()
+ address_state = models.TextField()
+ address_country = models.TextField()
+ # parent authority of the requested authority
+ authority_hrn = models.TextField()
+ created = models.DateTimeField(auto_now_add = True)
+
+class PendingSlice(models.Model):
+ slice_name = models.TextField()
+ user_hrn = models.TextField()
+ authority_hrn = models.TextField(null=True)
+ number_of_nodes = models.TextField(default=0)
+ type_of_nodes = models.TextField(default='NA')
+ purpose = models.TextField(default='NA')
+ created = models.DateTimeField(auto_now_add = True)