added models for full time hours + employment rate
This commit is contained in:
parent
9156142c04
commit
64d9bbbad2
@ -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"])
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user