diff --git a/dispatcher/models.py b/dispatcher/models.py index 5b5b41b..7feadab 100644 --- a/dispatcher/models.py +++ b/dispatcher/models.py @@ -53,3 +53,20 @@ class RealSageXHours(models.Model): constraints = [ models.UniqueConstraint(fields=["parent", "date"], name="unique_monthly_sagex") ] + + +class FullTimeMonthlyHours(models.Model): + date = models.DateField(unique=True) + hours = models.DurationField(default=timedelta) + + +class EmploymentRate: + rate = models.DecimalField(max_digits=10, decimal_places=2) + start_date = models.DateField() + + class Meta: + indexes = [ + models.Index(fields=["start_date"]) + ] + +