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

чиним билд12

This commit is contained in:
MoonTestUse1
2025-01-02 00:29:04 +06:00
parent 7c36382917
commit 2e230b7257
3 changed files with 15 additions and 3 deletions

View File

@@ -30,4 +30,8 @@ class Request(Base):
status = Column(Enum(RequestStatus), default=RequestStatus.new)
created_at = Column(DateTime(timezone=True), server_default=func.now())
employee = relationship("Employee", back_populates="requests")
employee = relationship(
"app.models.employee.Employee",
back_populates="requests",
primaryjoin="Request.employee_id == app.models.employee.Employee.id"
)