1. Begin to write node.js back-end with bare-bones SQL queries.
2. Realise that representing entities as JS objects would be handy.
3. Begin to write code that resembles an ORM.
4. Stop, because ORMs are already a thing.
5. Check for JS ORMs online. They're all vaguely as horrible as Hibernate and expect you to define your entities in some kind of internal data structure.
6. Start dreaming about a relational database that seamlessly integrates with JS so you don't even notice it's there.