Automated Action fec0fa72e7 Initial project setup with FastAPI, SQLite, and Alembic
- Set up SQLite database configuration and directory structure
- Configure Alembic for proper SQLite migrations
- Add initial model schemas and API endpoints
- Fix OAuth2 authentication
- Implement proper code formatting with Ruff
2025-05-27 20:34:02 +00:00

14 lines
261 B
Python

from typing import Optional
from pydantic import BaseModel
class Token(BaseModel):
"""Schema for access token."""
access_token: str
token_type: str
class TokenPayload(BaseModel):
"""Schema for token payload."""
sub: Optional[int] = None