Optional
options: HasOneSetAssociationMixinOptions<T>The setAssociation mixin applied to models with hasOne. An example of usage is as follows:
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {
declare setRole: HasOneSetAssociationMixin<Role, Role['id']>;
}
User.hasOne(Role);
Model.hasOne
Optional
options: HasOneSetAssociationMixinOptions<T>Generated using TypeDoc
The setAssociation mixin applied to models with hasOne. An example of usage is as follows:
See
Model.hasOne