This commit is contained in:
2024-04-12 07:34:21 +03:00
parent 5c81af05d5
commit be623a3555
12 changed files with 513 additions and 93 deletions

View File

@@ -25,7 +25,7 @@ class ClientDetails(BaseModel):
address = Column(String)
phone_number = Column(String)
inn = Column(BigInteger)
inn = Column(String)
email = Column(String)
last_modified_at = Column(DateTime, nullable=False)

View File

@@ -35,6 +35,7 @@ class Deal(BaseModel):
services = relationship('DealService', back_populates='deal')
products = relationship('DealProduct', back_populates='deal')
class DealStatusHistory(BaseModel):
__tablename__ = 'deals_status_history'
id = Column(Integer, autoincrement=True, primary_key=True, index=True)