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