Create a new instance of the associated model and associate it with this.
User.belongsTo(Role);
interface UserInstance extends Sequelize.Instance<UserInstance, UserAttributes>, UserAttributes {
// getRole...
// setRole...
createRole: Sequelize.BelongsToCreateAssociationMixin<RoleAttributes>;
}
The values used to create the association.
The options passed to target.create
and setAssociation
.
Generated using TypeDoc
The createAssociation mixin applied to models with belongsTo. An example of usage is as follows:
User.belongsTo(Role); interface UserInstance extends Sequelize.Instance<UserInstance, UserAttributes>, UserAttributes { // getRole... // setRole... createRole: Sequelize.BelongsToCreateAssociationMixin<RoleAttributes>; }
http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
Instance