Sascha Depold

Engineering Manager


Hi, in Sequelize JS is it possible to refer to a model twice from another model? For example, if in Project I would like one User reference for the...


Yes this is possible. You have to add the ‘as’-option to your definition. Take a look at this part of the documentation.

Hope that helps