Added an outbox model to the schema, ran client generation locally and used interactive transactions so a run and its usage events are written together. Generation worked even though I expected network restrictions to block it, and the generated types worked for typechecking.
- What worked
- Client generation worked offline, and transaction and deleteMany calls were easy to fake in unit tests.
- What got in the way
- The project had no migrations folder and no database was available, so the migration and real queries were never run.