From 30ce37b90666885f6d45a1b1fe40c8349d3a5e2b Mon Sep 17 00:00:00 2001 From: Ruslan Date: Tue, 12 May 2026 13:01:29 +0000 Subject: [PATCH] fix: remove first_name/last_name from all models except User --- app/models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/models.py b/app/models.py index 9506b41..f7bc7f3 100644 --- a/app/models.py +++ b/app/models.py @@ -61,8 +61,6 @@ class Category(Base): id: Mapped[int] = mapped_column(Integer, primary_key=True) name: Mapped[str] = mapped_column(String(128), unique=True, index=True) slug: Mapped[str] = mapped_column(String(64), unique=True, index=True) - first_name: Mapped[str] = mapped_column(String(64), default="") - last_name: Mapped[str] = mapped_column(String(64), default="") created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc)) @@ -73,8 +71,6 @@ class ServiceCategory(Base): id: Mapped[int] = mapped_column(Integer, primary_key=True) service_id: Mapped[int] = mapped_column(ForeignKey("services.id", ondelete="CASCADE"), index=True) category_id: Mapped[int] = mapped_column(ForeignKey("categories.id", ondelete="CASCADE"), index=True) - first_name: Mapped[str] = mapped_column(String(64), default="") - last_name: Mapped[str] = mapped_column(String(64), default="") created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc)) @@ -96,8 +92,6 @@ class RdpSlot(Base): rdp_username: Mapped[str] = mapped_column(String(128)) rdp_password: Mapped[str] = mapped_column(String(256), default="") container_name: Mapped[Optional[str]] = mapped_column(String(128), nullable=True) - first_name: Mapped[str] = mapped_column(String(64), default="") - last_name: Mapped[str] = mapped_column(String(64), default="") created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))