Skip to content

Commit

Permalink
Add docstring to SLA models
Browse files Browse the repository at this point in the history
  • Loading branch information
Pithikos committed Sep 29, 2021
1 parent 58f688a commit 37f0225
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/cases/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,18 @@ class Meta:


class CaseAssignmentSla(models.Model):
"""
Keeps track of days passed since case assigned to a team
"""
sla_days = models.IntegerField()
queue = models.ForeignKey(Queue, related_name="slas", on_delete=models.CASCADE)
case = models.ForeignKey(Case, related_name="slas", on_delete=models.CASCADE)


class DepartmentSla(models.Model):
"""
Keeps track of days passed since application received in department
"""
sla_days = models.IntegerField()
department = models.ForeignKey(Department, on_delete=models.CASCADE, related_name="department_slas")
case = models.ForeignKey(Case, on_delete=models.CASCADE, related_name="department_slas")
Expand Down

0 comments on commit 37f0225

Please sign in to comment.