Skip to content

Commit

Permalink
add model
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Sep 21, 2023
1 parent 8c61ff5 commit 674e774
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,18 @@ def validate_template(cls, template):
return all(t in cls.VALID_TEMPLATE_TOKENS for t in tokens)


class ClubApplicationExtension(models.Model):
"""
Represents an individual club application extension.
"""

user = models.ForeignKey(get_user_model(), on_delete=models.CASCADE)
application = models.ForeignKey(
ClubApplication, related_name="extensions", on_delete=models.CASCADE
)
extension_end_time = models.DateTimeField()


class ApplicationCommittee(models.Model):
"""
Represents a committee for a particular club application. Each application
Expand Down

0 comments on commit 674e774

Please sign in to comment.