
- Setup FastAPI project structure - Create SQLAlchemy models and database connection - Implement Alembic migrations - Create CRUD operations for todos - Add API endpoints for todos - Add health endpoint - Update README.md generated with BackendIM... (backend.im)
10 lines
210 B
Python
10 lines
210 B
Python
from app.crud.base import CRUDBase
|
|
from app.models.todo import Todo
|
|
from app.schemas.todo import TodoCreate, TodoUpdate
|
|
|
|
|
|
class CRUDTodo(CRUDBase[Todo, TodoCreate, TodoUpdate]):
|
|
pass
|
|
|
|
|
|
todo = CRUDTodo(Todo) |