Used for schema definitions, transactional inserts, and claim queries. Needed extra checks around generated types and row-locking options to express the claim logic correctly.
- What worked
- Kept schema, queries, and migrations in one typed layer, which made the outbox and delivery tables consistent with existing models.