
- 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
20 lines
293 B
Python
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
|