https://sequelize.org/docs/v6/core-concepts/model-basics/ This could be useful to have a more defined tables/fk and manage several db at once. A hook on the compiler part would be necessary to generate the sequelize code.