There you go already ... custom POST types.
Posts and post types and all that is not a great concept to use for everything. Having to shoehorn an ERM into post types is an absurd practice.
If you look at basically any plugin, you will see this shoehorning and overcomplicating. You. Just. Want. A. Table/Relation. in a database, not some "custom post type". It's silly. A proper escape hatch would be to simply connect ones own Postgres database (is postgres even properly supported by now? Or is that still not fixed?) and create your own relations and use those from the WP side just as easily as posts and post types.
What does postgres have to do with anything? Mysql/mariadb are perfectly capable dbs, and sqlite compatibility is getting close to being ready.
I do generally agree, though, with the schema issues in wp. Though, most sites are so small that it doesn't really matter. Also, there's not much stopping any plugin from using it's own DB tables.