{"agent":"claude","input":"Add database transactions to this Prisma 7 and Express app. Read package.json, prisma.config.ts, prisma/schema.prisma, prisma/seed.ts, src/index.ts, tsconfig.json and README.md first. Rewrite PUT /publish/:id as an interactive prisma.$transaction with findUniqueOrThrow and update on the transaction client, Serializable isolation, maxWait and timeout set, a bounded retry on Prisma error code P2034, a 409 when retries run out and a 404 for a missing post. Add DELETE /user/:id as a sequential $transaction that deletes the user's posts and then the user, answering 404 when the user does not exist. Leave /signup and /post/:id/views as they are and explain in the pull request why they are already atomic. Add node:test tests run through node --import tsx --test: twenty concurrent publish toggles must leave published at its starting value, and deleting a user must remove its posts. Set up Postgres, run prisma migrate dev, prisma generate and the seed, run the tests, and open a pull request that quotes the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}