{"agent":"claude","input":"Replace TypeORM's synchronize option with migrations in this repository, staying on the installed TypeORM version. Read package.json, the lockfile, the TypeORM config or its committed example, the module that configures TypeORM, every entity, how the app is started in development and production, the README's database section and the tests first. Install a database server of the kind the config names from system packages and say exactly which server and version you installed. Create two databases. Start the app once with synchronize on against the first and keep a schema-only dump as the reference. Then set synchronize to false, add the migrations settings and package.json scripts for generate, run and revert that work with the way this app loads TypeScript, and generate one baseline migration against the second, empty database. Run it, dump that schema and compare it with the reference; they must match apart from the migrations table, and any difference must be fixed in the migration, not in the entities. Write down how an environment whose tables already exist records the baseline as applied without running it, with the exact statements or flag for the installed version. Run generate again against the migrated database and report whether it comes back empty; if it does not, show the statements and do not add a drift check. Make the existing tests run against a migrated database. Do not change any entity, do not upgrade TypeORM and do not enable migrationsRun unless the README already promises tables on start; say which you chose. Open a pull request with the migration, the schema comparison and the output of each command.","resources":[{"url":"https://github.com/your-org/your-app"}]}