Skip to content

Commit

Permalink
Add+fix types in CustosAuthnzToken.user
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 12, 2024
1 parent ab15593 commit cda5def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10053,15 +10053,15 @@ class CustosAuthnzToken(Base, RepresentById):
)

id: Mapped[int] = mapped_column(primary_key=True)
user_id: Mapped[Optional[int]] = mapped_column(ForeignKey("galaxy_user.id"))
user_id: Mapped[int] = mapped_column(ForeignKey("galaxy_user.id"), nullable=True)
external_user_id: Mapped[Optional[str]] = mapped_column(String(255))
provider: Mapped[Optional[str]] = mapped_column(String(255))
access_token: Mapped[Optional[str]] = mapped_column(Text)
id_token: Mapped[Optional[str]] = mapped_column(Text)
refresh_token: Mapped[Optional[str]] = mapped_column(Text)
expiration_time: Mapped[datetime] = mapped_column(nullable=True)
refresh_expiration_time: Mapped[datetime] = mapped_column(nullable=True)
user = relationship("User", back_populates="custos_auth")
user: Mapped["User"] = relationship("User", back_populates="custos_auth")


class CloudAuthz(Base):
Expand Down

0 comments on commit cda5def

Please sign in to comment.