From 64d9bbbad2a331ce5233962becdb898cf3012655 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 23 Feb 2025 21:44:27 +0100 Subject: [PATCH] added models for full time hours + employment rate --- dispatcher/models.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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"]) + ] + +