Commit d020aa97 authored by Vaughn Fajardo's avatar Vaughn Fajardo

feat: added association between widgetuser and newly created department class

parent ef010c74
......@@ -7,3 +7,9 @@ class WidgetUser(models.Model):
last_name = models.CharField(max_length=50)
id_num = models.IntegerField(max_length=7)
email = models.EmailField(max_length=50)
department = models.ForeignKey(Department, on_delete=models.CASCADE)
class Department(models.Model):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment