Bckn funcion

This commit is contained in:
2026-03-17 11:09:30 -06:00
parent 5e58d53416
commit d691b71c44
17 changed files with 406 additions and 224 deletions

View File

@@ -163,6 +163,12 @@ class Ticket(Base):
cascade="all, delete-orphan"
)
issues: Mapped[list["TicketIssue"]] = relationship(
"TicketIssue",
back_populates="ticket",
cascade="all, delete-orphan"
)
def __repr__(self) -> str:
return f"<Ticket(id={self.id}, number='{self.ticket_number}', status={self.status})>"