fix: db columns fixed
This commit is contained in:
@@ -91,7 +91,7 @@ class CardAttribute(BaseModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
UniqueConstraint('card_id', 'attribute_id', name='uix_card_service'),
|
UniqueConstraint('card_id', 'attribute_id', name='uq_card_id_attribute_id'),
|
||||||
Index('idx_card_id_attribute_id', 'card_id', 'attribute_id', unique=True)
|
Index('idx_card_id_attribute_id', 'card_id', 'attribute_id', unique=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -59,5 +59,6 @@ class CardStatusHistory(BaseModel):
|
|||||||
|
|
||||||
next_status_deadline: Mapped[datetime] = mapped_column(
|
next_status_deadline: Mapped[datetime] = mapped_column(
|
||||||
comment='Дедлайн до которого сделку нужно перевести на следующий этап',
|
comment='Дедлайн до которого сделку нужно перевести на следующий этап',
|
||||||
|
nullable=True,
|
||||||
)
|
)
|
||||||
comment: Mapped[str] = mapped_column(nullable=False, comment='Комментарий', server_default='')
|
comment: Mapped[str] = mapped_column(nullable=False, comment='Комментарий', server_default='')
|
||||||
|
|||||||
Reference in New Issue
Block a user