From 660c7e4a43aa78796e49fbe7355f59b8d4d1c50f Mon Sep 17 00:00:00 2001 From: sxxtony <166789813+sxxtony@users.noreply.github.com> Date: Thu, 9 Apr 2026 22:13:06 -0700 Subject: [PATCH] refactor: migrate TrialApp and AccountTrialAppRecord to TypeBase (#34897) --- api/models/model.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/api/models/model.py b/api/models/model.py index d2ff8065e2..0ea2259a19 100644 --- a/api/models/model.py +++ b/api/models/model.py @@ -913,11 +913,7 @@ class TrialApp(TypeBase): app_id: Mapped[str] = mapped_column(StringUUID, nullable=False) tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False) created_at: Mapped[datetime] = mapped_column( - sa.DateTime, - nullable=False, - insert_default=func.current_timestamp(), - server_default=func.current_timestamp(), - init=False, + sa.DateTime, nullable=False, server_default=func.current_timestamp(), init=False ) trial_limit: Mapped[int] = mapped_column(sa.Integer, nullable=False, default=3) @@ -941,11 +937,7 @@ class AccountTrialAppRecord(TypeBase): app_id: Mapped[str] = mapped_column(StringUUID, nullable=False) count: Mapped[int] = mapped_column(sa.Integer, nullable=False, default=0) created_at: Mapped[datetime] = mapped_column( - sa.DateTime, - nullable=False, - insert_default=func.current_timestamp(), - server_default=func.current_timestamp(), - init=False, + sa.DateTime, nullable=False, server_default=func.current_timestamp(), init=False ) @property