feat: add submission assignee model

This commit is contained in:
Luca 2024-02-13 15:30:34 +01:00
parent d2ca7db7aa
commit 48216a8862
1 changed files with 7 additions and 0 deletions

View File

@ -105,3 +105,10 @@ class Rating(models.Model):
fields=("submission", "juror"), name="unique_rating" fields=("submission", "juror"), name="unique_rating"
), ),
] ]
class Assignee(models.Model):
submission = models.OneToOneField("submission.Submission", on_delete=models.CASCADE)
user = models.ForeignKey(
"person.User", on_delete=models.CASCADE, related_name="assigned_submissions"
)