Automated Action f207cc3c64 Create RESTful API service with FastAPI and SQLite
- Set up project structure with FastAPI and dependency files
- Configure SQLAlchemy with SQLite database
- Implement user authentication using JWT tokens
- Create comprehensive API routes for user management
- Add health check endpoint for application monitoring
- Set up Alembic for database migrations
- Add detailed documentation in README.md
2025-06-16 14:56:03 +00:00

20 lines
293 B
Python

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