feat: deal status history table
This commit is contained in:
@ -7,7 +7,7 @@ from models.base import BaseModel
|
||||
from models.mixins import SoftDeleteMixin, CreatedAtMixin, IdMixin
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from models import Status, Board, CardStatusHistory
|
||||
from models import Status, Board, DealStatusHistory
|
||||
|
||||
|
||||
class Deal(BaseModel, IdMixin, SoftDeleteMixin, CreatedAtMixin):
|
||||
@ -28,7 +28,7 @@ class Deal(BaseModel, IdMixin, SoftDeleteMixin, CreatedAtMixin):
|
||||
)
|
||||
board: Mapped["Board"] = relationship(back_populates="deals")
|
||||
|
||||
status_history: Mapped[list["CardStatusHistory"]] = relationship(
|
||||
status_history: Mapped[list["DealStatusHistory"]] = relationship(
|
||||
back_populates="deal",
|
||||
cascade="all, delete-orphan",
|
||||
lazy="noload",
|
||||
|
||||
Reference in New Issue
Block a user