This is really interesting.
What are the tradeoffs of generating the unique ID uuid's from the database vs from the code?
Compared to ORM's, is one of the main differences that the db objects define the types and constraints and those propagate out to the code? And ORM's start with code and propagate out to the DB?