Automated Action 3be833dc43 Implement Task Manager API with FastAPI and SQLite
- Set up project structure
- Configure SQLAlchemy models and database connection
- Set up Alembic for database migrations
- Create Pydantic schemas for API data validation
- Implement task CRUD operations
- Add task filtering and pagination
- Include health check endpoint
- Update README with setup and usage instructions
2025-06-04 20:37:13 +00:00

13 lines
291 B
Python

from typing import Any
from sqlalchemy.ext.declarative import as_declarative, declared_attr
@as_declarative()
class Base:
id: Any
__name__: str
# Generate __tablename__ automatically
@declared_attr
def __tablename__(cls) -> str:
return cls.__name__.lower()