todoapp-h5yaal/alembic/script.py.mako
Automated Action 7a8eb3a5b2 Create complete FastAPI Todo application
- Set up FastAPI application with CORS support
- Created SQLite database configuration with absolute paths
- Implemented Todo model with SQLAlchemy
- Added full CRUD operations for todos
- Created API endpoints with proper error handling
- Set up Alembic for database migrations
- Added health check and base URL endpoints
- Updated README with comprehensive documentation
- Configured project structure following best practices

Features:
- Complete Todo CRUD API
- SQLite database with proper path configuration
- Database migrations with Alembic
- API documentation at /docs and /redoc
- Health check endpoint at /health
- CORS enabled for all origins
- Proper error handling and validation
2025-06-23 13:46:11 +00:00

24 lines
509 B
Mako

"""${message}
Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
branch_labels = ${repr(branch_labels)}
depends_on = ${repr(depends_on)}
def upgrade() -> None:
${upgrades if upgrades else "pass"}
def downgrade() -> None:
${downgrades if downgrades else "pass"}