Relative Content

Tag Archive for node.jspostgresqlsequelize.js

How to take column dynamically in foreignKey in Sequelize

I have two separate tables CourseOffer and CourseAddon where CourseAddon has foreignKey courseOfferId in CourseAddon table.
Now I wish to add a new column in my CourseOffer table named alternateCourseOfferId which in itself is linked to another CourseOffer.