feat: work shifts history
This commit is contained in:
@@ -29,7 +29,7 @@ class Expense(BaseModel):
|
||||
amount: Mapped[float] = mapped_column()
|
||||
|
||||
created_by_user_id: Mapped[int] = mapped_column(ForeignKey("users.id"), nullable=False)
|
||||
created_by_user: Mapped["User"] = relationship(foreign_keys=[created_by_user_id])
|
||||
created_by_user: Mapped["User"] = relationship(foreign_keys=[created_by_user_id], lazy="selectin")
|
||||
|
||||
tags: Mapped[list["ExpenseTag"]] = relationship(
|
||||
secondary=expenses_expense_tags,
|
||||
|
||||
@@ -27,4 +27,5 @@ class WorkShift(BaseModel):
|
||||
user: Mapped["User"] = relationship(
|
||||
"User",
|
||||
back_populates="work_shifts",
|
||||
lazy="selectin",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user