The createAssociation mixin applied to models with belongsTo. An example of usage is as follows:
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare createRole: BelongsToCreateAssociationMixin<Role>;}User.belongsTo(Role);
Model.belongsTo
Optional
Generated using TypeDoc
The createAssociation mixin applied to models with belongsTo. An example of usage is as follows:
See
Model.belongsTo