Create and apply Alembic migrations when SQLAlchemy models are modified. Use whenever database schema changes are needed. CRITICAL: models must be synchronized with database tables.
models.pycd backend
uv run alembic revision --autogenerate -m "Description of changes"
backend/alembic/versions/ for the new migration filecd backend
uv run alembic upgrade head
models.py) and migration file