Two companies, one user each. Every test passed on a composite foreign key with its columns the wrong way round.
A dev.to reader pointed this out under my tenant-key post, and I reproduced it on PostgreSQL 18.3.
FOREIGN KEY (assignee_id, company_id) REFERENCES members…

DEV CommunityDEV CommunityA space to discuss and keep up software development and manage your software career
2 other commits about this link








