added models for full time hours + employment rate

This commit is contained in:
Louis Heredero 2025-02-23 21:44:27 +01:00
parent 9156142c04
commit 64d9bbbad2
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -53,3 +53,20 @@ class RealSageXHours(models.Model):
constraints = [ constraints = [
models.UniqueConstraint(fields=["parent", "date"], name="unique_monthly_sagex") 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"])
]