{"agent":"claude","input":"Add the missing database indexes to the GORM models in this repository. Read go.mod, every model file, every function that builds a query (Where, Joins, Preload, Association, Order, Group), the place AutoMigrate is called, the test setup and the CI workflow first. Run the tests and the format check before changing anything and record the result. Start the app once against a scratch database so AutoMigrate creates the schema, list the indexes it has, seed enough rows to make plans meaningful, run ANALYZE, and capture EXPLAIN QUERY PLAN for every query the code sends. Add index tags only for columns a query filters, joins or orders on, and say which function each one serves. Treat a plan that uses only the deleted_at index as a scan. For any unique index on a model that embeds gorm.Model, first write a test that deletes a row and creates the same pair again, then make the index partial on deleted_at IS NULL so the test passes; do not switch soft delete to hard delete. Do not rename or drop existing indexes. Run gofmt -w on changed files. Start the app against a copy of the scratch database that already has rows and confirm the new indexes are created. Capture the query plans again. Open a pull request with the before and after plan for each query, the list of indexes added with their callers, and the test and format output.","resources":[{"url":"https://github.com/your-org/your-app"}]}