backend-rag-chatbot-v3 / src /models /auth_session.py
abdullah9873's picture
Upload folder using huggingface_hub
7f9490e verified
Raw History Blame Contribute Delete
346 Bytes
from typing import Optional
from datetime import datetime
from sqlmodel import SQLModel, Field
class Session(SQLModel, table=True):
id: str = Field(primary_key=True)
userId: str
token: str
expiresAt: datetime
ipAddress: Optional[str] = None
userAgent: Optional[str] = None
createdAt: datetime
updatedAt: datetime