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

починка сотрудников

This commit is contained in:
MoonTestUse1
2025-01-04 04:50:34 +06:00
parent 71c1114a84
commit 7ded441ba7
5 changed files with 103 additions and 45 deletions

View File

@@ -16,4 +16,4 @@ class Employee(Base):
created_at = Column(DateTime(timezone=True), server_default=func.now())
# Определяем отношение к Request
requests = relationship("Request", back_populates="employee")
requests = relationship("Request", back_populates="employee", cascade="all, delete-orphan")