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

починка админки1

This commit is contained in:
MoonTestUse1
2025-01-03 23:53:34 +06:00
parent 30d203fa7c
commit e038093138
2 changed files with 3 additions and 2 deletions

View File

@@ -13,12 +13,12 @@ class Employee(Base):
last_name = Column(String, nullable=False)
department = Column(String, nullable=False)
office = Column(String, nullable=False)
password = Column(String, nullable=False)
hashed_password = Column(String, nullable=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())
# Определяем отношение к Request
requests = relationship(
"app.models.request.Request",
"Request",
back_populates="employee",
lazy="dynamic",
cascade="all, delete-orphan"