Automated Action f8bb3dd21d Implement Task Management Tool with FastAPI and SQLite
- Set up FastAPI project structure with API versioning
- Create database models for users and tasks
- Implement SQLAlchemy ORM with SQLite database
- Initialize Alembic for database migrations
- Create API endpoints for task management (CRUD)
- Create API endpoints for user management
- Add JWT authentication and authorization
- Add health check endpoint
- Add comprehensive README.md with API documentation
2025-06-02 20:40:57 +00:00

18 lines
281 B
Python

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