Automated Action 938b6d4153 Create a simple generic REST API with FastAPI and SQLite
Implemented a complete FastAPI backend with:
- Project structure with FastAPI and SQLAlchemy
- SQLite database with proper configuration
- Alembic for database migrations
- Generic Item resource with CRUD operations
- REST API endpoints with proper validation
- Health check endpoint
- Documentation and setup instructions
2025-05-17 20:57:23 +00:00

8 lines
166 B
Python

from app.db.base import Base
from app.db.session import engine
# Create tables if they don't exist
def init_db() -> None:
Base.metadata.create_all(bind=engine)