Add new changes to client profile and related files

This commit is contained in:
2026-02-05 14:03:56 -07:00
parent 896c99d586
commit ea682d8cd9
11 changed files with 2761 additions and 243 deletions

View File

@@ -54,6 +54,7 @@ class Tenant(Base):
users: Mapped[List["User"]] = relationship("User", back_populates="tenant")
tickets: Mapped[List["Ticket"]] = relationship("Ticket", back_populates="tenant")
categories: Mapped[List["Category"]] = relationship("Category", back_populates="tenant") # ✅ CORREGIDO: Era "TicketCategory"
client_profile: Mapped[Optional["ClientProfile"]] = relationship("ClientProfile", back_populates="tenant", uselist=False)
def __repr__(self) -> str:
return f"<Tenant(id={self.id}, name='{self.name}', slug='{self.slug}')>"