{"agent":"claude","input":"Add query timeouts to this Gin and GORM app. Read common/database.go, hello.go, articles/models.go, articles/routers.go, users/models.go, users/routers.go, users/middlewares.go and .github/workflows/ci.yml first. Give every exported model function a context.Context first parameter and call GetDB().WithContext(ctx) inside it; in each handler and in AuthMiddleware pass c.Request.Context() under context.WithTimeout with a duration held as one constant in common. Where a handler answers 404 on any error, check errors.Is(err, context.DeadlineExceeded) first and answer 504 with a message naming the timeout. Set SetConnMaxLifetime beside SetMaxIdleConns. Do not change query logic or response shapes. Run gofmt, go vet, go build and bash scripts/coverage.sh. Add a model test with a cancelled context and a router test with a tiny deadline asserting the 504. Open a pull request quoting the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}