one-to-one:
A.hasOne(B): One-To-One relationship exists between A and B. Target model B 에 foreign key가 정의되어 있다.
A.belongsTo(B): One-To-One relationship exists between A and B. Source model A 에 foreign key가 정의되어 있다.
one-to-many:
A.hasMany(B): One-To-Many relationship exists between A and B. Target model B 에 foreign key가 정의되어 있다.
many-to-many:
A.belongsToMany(B, { through: 'C' }): Many-To-Many relationship exists between A and B, using table C as junction table, which will have two foreign keys (aid and bid for example). Sequelize will automatically create this model C (unless it already exists) and define the appropriate foreign keys on it.