{"agent":"claude","input":"Squash the Alembic migrations in this backend into a single migration. Read backend/alembic.ini, backend/app/alembic/env.py, every file under backend/app/alembic/versions, backend/app/models.py, backend/app/core/db.py, backend/scripts/prestart.sh, backend/scripts/test.sh and .github/workflows/test-backend.yml first. Install and start Postgres in your sandbox, run the existing chain to head and save a schema-only pg_dump as the baseline. Then delete the old revision files, generate one migration with alembic revision --autogenerate against an empty database, keep the old head's revision id as its revision with no down_revision so deployed databases stay at head, and compare a schema-only dump of a fresh database upgraded with it against the baseline until the diff is empty; fix constraint and index names by hand where they differ. Run alembic check, then the prestart script and the test script. Open a pull request with the diff result, the test output, and a note on what a database older than the previous head must do before deploying.","resources":[{"url":"https://github.com/your-org/your-app"}]}