* Creates an association between this (the source) and the provided target. The foreign key is added on the source. * * @param {Model} target The target model * @param {object} [options] belongsTo association options * @param {boolean} [options.hooks=false] Set
(target, options)
| 4533 | * Profile.belongsTo(User) class="cm">// This will add userId to the profile table |
| 4534 | */ |
| 4535 | static belongsTo(target, options) {} class="cm">// eslint-disable-line |
| 4536 | } |
| 4537 | |
| 4538 | Object.assign(Model, associationsMixin); |
no outgoing calls