This commit is contained in:
2024-04-28 04:55:47 +03:00
parent 4e7626d2e6
commit c8a62b4952
10 changed files with 156 additions and 56 deletions

View File

@@ -37,10 +37,11 @@ class Deal(BaseModel):
products = relationship('DealProduct', back_populates='deal')
# TODO remake with sequence
rank = Column(String, nullable=False, comment='Lexorank')
lexorank = Column(String, nullable=False, comment='Lexorank', index=True)
comment = Column(String, nullable=False, server_default='', comment='Коментарий к заданию')
class DealStatusHistory(BaseModel):
__tablename__ = 'deals_status_history'
id = Column(Integer, autoincrement=True, primary_key=True, index=True)