Files
proc-rota/web/schemas.py
T
2023-05-23 14:48:12 +01:00

33 lines
577 B
Python

from rota.shifts import SingleShift as SingleShiftBase, ShiftConstraint as ShiftConstraintBase
from rota.workers import Worker as WorkerBase
class SingleShift(SingleShiftBase):
id: int
class Config:
orm_mode = True
class SingleShiftCreate(SingleShiftBase):
pass
#class ShiftConstraint(ShiftConstraintBase):
# id: int
#
# class Config:
# orm_mode = True
#
#class ShiftConstraintCreate(ShiftConstraintBase):
# pass
class Worker(WorkerBase):
pass
class Config:
orm_mode = True
class WorkerCreate(WorkerBase):
pass