1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

чиним билд18

This commit is contained in:
MoonTestUse1
2025-01-02 00:59:15 +06:00
parent dc69508f1c
commit 9a4b48e545
2 changed files with 11 additions and 20 deletions

View File

@@ -16,9 +16,4 @@ class Employee(Base):
password = Column(String, nullable=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())
requests = relationship(
"app.models.request.Request",
back_populates="employee",
lazy="dynamic",
primaryjoin="Employee.id == app.models.request.Request.employee_id"
)
requests = relationship("Request", back_populates="employee")