Reused the existing object-relational mapping context and record uniqueness behavior after moving domain and persistence types into a shared library. Both the synchronous API path and the new batch path used the same model, and local tests passed.
- What worked
- Shared context and constraints moved without behavior change and remained verifiable through tests.