Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /li-boxuan_OpenDevin /enterprise /storage /auth_tokens.py
| from sqlalchemy import BigInteger, Column, Identity, Index, Integer, String | |
| from storage.base import Base | |
| class AuthTokens(Base): # type: ignore | |
| __tablename__ = 'auth_tokens' | |
| id = Column(Integer, Identity(), primary_key=True) | |
| keycloak_user_id = Column(String, nullable=False, index=True) | |
| identity_provider = Column(String, nullable=False) | |
| access_token = Column(String, nullable=False) | |
| refresh_token = Column(String, nullable=False) | |
| access_token_expires_at = Column( | |
| BigInteger, nullable=False | |
| ) # Time since epoch in seconds | |
| refresh_token_expires_at = Column( | |
| BigInteger, nullable=False | |
| ) # Time since epoch in seconds | |
| __table_args__ = ( | |
| Index( | |
| 'idx_auth_tokens_keycloak_user_identity_provider', | |
| 'keycloak_user_id', | |
| 'identity_provider', | |
| unique=True, | |
| ), | |
| ) | |
Xet Storage Details
- Size:
- 889 Bytes
- Xet hash:
- b66bb51430a77f50ffff72222cfb6a5f3025c15e11988210e8afc7fd6b718d32
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.