Loading alembic/versions/d3889051d9e7_add_users_and_keys.py +0 −1 Changes for alembic/versions/d3889051d9e7_add_users_and_keys.py: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ def upgrade() -> None: sa.Column("secret_hash", sa.String(length=256), nullable=False), sa.Column("created_at", UtcDateTime(), nullable=False), sa.Column("expires_at", UtcDateTime(), nullable=False), sa.Column("last_used_at", UtcDateTime(), nullable=True), sa.Column("user_uuid", Uuid(), nullable=False), sa.Column("uuid", Uuid(), nullable=False), sa.ForeignKeyConstraint( Loading portal/model/Key.py +0 −2 Changes for portal/model/Key.py: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -58,7 +58,6 @@ class Key(Base): secret_hash: Mapped[str] = mapped_column(String(256), unique=True, index=True) created_at: Mapped[datetime] = mapped_column(UtcDateTime) expires_at: Mapped[datetime] = mapped_column(UtcDateTime) last_used_at: Mapped[Optional[datetime]] = mapped_column(UtcDateTime) user_uuid: Mapped[Uuid] = mapped_column(ForeignKey("user.uuid")) @classmethod Loading Loading @@ -97,7 +96,6 @@ class Key(Base): if key.expired: return None key.last_used_at = datetime.now(timezone.utc) db.session.commit() # write change to db return key Loading Loading
alembic/versions/d3889051d9e7_add_users_and_keys.py +0 −1 Changes for alembic/versions/d3889051d9e7_add_users_and_keys.py: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -35,7 +35,6 @@ def upgrade() -> None: sa.Column("secret_hash", sa.String(length=256), nullable=False), sa.Column("created_at", UtcDateTime(), nullable=False), sa.Column("expires_at", UtcDateTime(), nullable=False), sa.Column("last_used_at", UtcDateTime(), nullable=True), sa.Column("user_uuid", Uuid(), nullable=False), sa.Column("uuid", Uuid(), nullable=False), sa.ForeignKeyConstraint( Loading
portal/model/Key.py +0 −2 Changes for portal/model/Key.py: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -58,7 +58,6 @@ class Key(Base): secret_hash: Mapped[str] = mapped_column(String(256), unique=True, index=True) created_at: Mapped[datetime] = mapped_column(UtcDateTime) expires_at: Mapped[datetime] = mapped_column(UtcDateTime) last_used_at: Mapped[Optional[datetime]] = mapped_column(UtcDateTime) user_uuid: Mapped[Uuid] = mapped_column(ForeignKey("user.uuid")) @classmethod Loading Loading @@ -97,7 +96,6 @@ class Key(Base): if key.expired: return None key.last_used_at = datetime.now(timezone.utc) db.session.commit() # write change to db return key Loading