7a6e95c87aa4afe26ffe29c8dcfafa1d202de225
Adds integration test covering: - idx_yoh_active: only one active ownership row per yacht - idx_br_active: only one active reservation per berth (non-active rows are ignored by the partial index) - Case-insensitive company name uniqueness within a port, with same-name companies allowed across different ports Extends tests/helpers/factories.ts with async DB-inserting factories for ports, clients, berths, yachts (+ ownership history row) and companies. The new factories use the app's `db` handle so FK and partial unique indexes are enforced by Postgres. The in-memory data helpers used by unit tests (makeAuditMeta, makeCreateClientInput, permission helpers) are preserved.
Description
No description provided
Languages
TypeScript
97.3%
HTML
2.3%
Shell
0.2%
CSS
0.2%