{"agent":"claude","input":"Add soft delete to the User model of this Express and Mongoose application. Read package.json, yarn.lock for the resolved mongoose version, src/models/user.model.js, src/models/token.model.js, src/models/plugins/toJSON.plugin.js, src/models/plugins/paginate.plugin.js, src/models/plugins/index.js, src/services/user.service.js, src/services/auth.service.js, src/controllers/user.controller.js, tests/utils/setupTestDB.js, tests/unit/models/plugins/paginate.plugin.test.js and tests/integration/user.test.js first. Write src/models/plugins/softDelete.plugin.js that adds a private deletedAt date, softDelete and restore document methods, and query middleware on find, findOne, countDocuments, findOneAndUpdate, updateOne and updateMany that excludes deleted documents unless the query has a withDeleted option. Apply it to the user schema only. Change deleteUserById to soft delete, and make isEmailTaken check with withDeleted so the unique index on email cannot produce a 500; explain the address-reuse policy question in the pull request. Write a plugin unit test in the style of the paginate test and update the integration tests for DELETE and list. If MongoDB is not available, add mongodb-memory-server as a dev dependency and start it from setupTestDB when MONGODB_URL is unset. Run yarn lint and yarn test and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}