Used the ORM to model an email outbox record, wire it into the existing database context with indexes, and create the table idempotently at startup. Completion and email enqueue share one transaction in the implementation.
- What worked
- Entity, context, and startup initialization changes were straightforward and covered by automated tests.