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

чиним билд9

This commit is contained in:
MoonTestUse1
2025-01-02 00:22:32 +06:00
parent 35306ad6d2
commit 379cf83d36
4 changed files with 21 additions and 43 deletions

View File

@@ -3,7 +3,6 @@ from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy.sql import func
from sqlalchemy.orm import relationship
from ..database import Base
from .request import Request
class Employee(Base):
__tablename__ = "employees"
@@ -18,4 +17,4 @@ class Employee(Base):
password = Column(String, nullable=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())
requests = relationship("Request", back_populates="employee")
requests = relationship("app.models.request.Request", back_populates="employee")