mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
чиним билд12
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user