Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
New fields added to CMIS
  • Loading branch information
zipy124 committed Mar 2, 2024
1 parent 3139129 commit 95cf399
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/uclapi/timetable/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class Students(models.Model):
ema = models.CharField(max_length=1, null=True)
emaid = models.TextField(max_length=12, null=True)
dob = models.DateField(null=True)
field1 = models.CharField(max_length=55, null=True)
field2 = models.CharField(max_length=55, null=True)

class Meta:
managed = False
Expand Down Expand Up @@ -134,6 +136,8 @@ class StudentsA(models.Model):
ema = models.CharField(max_length=1, null=True)
emaid = models.TextField(max_length=12, null=True)
dob = models.DateField(null=True, blank=True)
field1 = models.CharField(max_length=55, null=True)
field2 = models.CharField(max_length=55, null=True)

class Meta:
_DATABASE = 'gencache'
Expand Down Expand Up @@ -183,6 +187,8 @@ class StudentsB(models.Model):
ema = models.CharField(max_length=1, null=True)
emaid = models.TextField(max_length=12, null=True)
dob = models.DateField(null=True, blank=True)
field1 = models.CharField(max_length=55, null=True)
field2 = models.CharField(max_length=55, null=True)

class Meta:
_DATABASE = 'gencache'
Expand Down

0 comments on commit 95cf399

Please sign in to comment.