Automated Action 12b80aca5b Implement and optimize Calculator API with FastAPI and SQLAlchemy
- Fixed Pydantic configuration using ConfigDict for latest Pydantic version
- Fixed import order in alembic/env.py for proper module imports
- Applied code formatting with Ruff
- Optimized database connection settings
- Ensured proper error handling for API endpoints

generated with BackendIM... (backend.im)
2025-05-13 23:22:34 +00:00

13 lines
245 B
Python

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