update a few things
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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
|
||||
Reference in New Issue
Block a user