diff --git a/events/models/profiles.py b/events/models/profiles.py index 932917b..0a4ace9 100644 --- a/events/models/profiles.py +++ b/events/models/profiles.py @@ -198,3 +198,13 @@ class Member(models.Model): def __str__(self): return '%s in %s' % (self.user, self.team) + +class Category(models.Model): + name = models.CharField(max_length=256) + description = models.TextField() + img = models.URLField(blank=False, null=False) + +class Topic(models.Model): + category = models.ForeignKey(Category, on_delete=models.CASCADE, null=False, blank=False) + name = models.CharField(max_length=256) + description = models.TextField()