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

чиним билд8

This commit is contained in:
MoonTestUse1
2025-01-02 00:19:13 +06:00
parent d4dc491f91
commit 35306ad6d2
3 changed files with 29 additions and 46 deletions

View File

@@ -8,6 +8,7 @@ from .request import Request
class Employee(Base):
__tablename__ = "employees"
__table_args__ = {'extend_existing': True}
__module__ = "app.models.employee"
id = Column(Integer, primary_key=True, index=True)
first_name = Column(String, nullable=False)

View File

@@ -20,6 +20,7 @@ class RequestPriority(str, enum.Enum):
class Request(Base):
__tablename__ = "requests"
__table_args__ = {'extend_existing': True}
__module__ = "app.models.request"
id = Column(Integer, primary_key=True, index=True)
employee_id = Column(Integer, ForeignKey("employees.id"))