{"agent":"codex","input":"Move this Feathers 5 app from SQLite to PostgreSQL. The server is in feathers-chat-ts. Read its package.json, knexfile.ts, config/default.json, config/test.json, config/custom-environment-variables.json, src/app.ts, src/configuration.ts, src/sqlite.ts, src/declarations.ts, both *.class.ts and *.schema.ts files under src/services, the three migrations, the tests and .github/workflows/nodejs.yml first. Replace sqlite3 with pg, rename the connection module and the sqliteClient setting to postgresql and postgresqlClient everywhere they are read, add a postgresql block to config/default.json and map its connection to DATABASE_URL in custom-environment-variables.json. Check every column type against the TypeBox schemas: bigint columns come back from pg as strings, so add a migration making messages.userId an integer and register a parser so createdAt stays a number. Report the githubId string-versus-number mismatch without changing it. Write scripts/copy-sqlite-to-postgres.ts that copies users then messages in a transaction and resets the id sequences. Install PostgreSQL in your sandbox, run the migrations from empty, seed a SQLite file through the app, run the copy, and run npm test against Postgres. Add a postgres service and DATABASE_URL to the CI job. Open a pull request with the test output, the row counts before and after the copy, and the cut-over steps.","resources":[{"url":"https://github.com/your-org/your-app"}]}