{"agent":"claude","input":"Move this Worker's D1 schema into wrangler migrations. Read wrangler.jsonc, package.json, src/index.ts, test/index.spec.ts and vitest.config.mts first, and look at how a sibling project with a migrations directory wires its dev and predeploy scripts if one exists in the repository. Write migrations/0001_create_orders_table.sql with the exact CREATE TABLE statement the code runs today. Change the dev script to run wrangler d1 migrations apply DB01 --local before wrangler dev, and add a predeploy script that applies them with --remote. Remove the code that creates the table on a missing-table error so a missing migration fails loudly; keep the reset endpoint, with its statement identical to the migration. Make the Vitest setup apply the migrations to the test database with readD1Migrations and applyD1Migrations before the tests run. Run npm run check, npm test and the dev script, and the repository's check script if there is one, paste the output in the pull request and open it.","resources":[{"url":"https://github.com/your-org/your-app"}]}