Skip to content

Commit

Permalink
docs(model): Added paranoid option for Model.BelongsToMany.through (#…
Browse files Browse the repository at this point in the history
…15065)

* add Model.BelongsToMany.through.paranoid option in documentation

* add paranoid option for Model.BelongsToMany.through

* Update model.js

add paranoid option for Model.BelongsToMany.through

* add paranoid option in Model.BelongsToMany.through

sync description paranoid option with belongs-to-many.d.ts
  • Loading branch information
ajatdarojat45 committed Sep 30, 2022
1 parent 7203b66 commit 5c88734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model.js
Expand Up @@ -4522,6 +4522,7 @@ class Model {
* @param {Model} [options.through.model] The model used to join both sides of the N:M association.
* @param {object} [options.through.scope] A key/value set that will be used for association create and find defaults on the through model. (Remember to add the attributes to the through model)
* @param {boolean} [options.through.unique=true] If true a unique key will be generated from the foreign keys used (might want to turn this off and create specific unique keys when using scopes)
* @param {boolean} [options.through.paranoid=false] If true the generated join table will be paranoid
* @param {string|object} [options.as] The alias of this association. If you provide a string, it should be plural, and will be singularized using node.inflection. If you want to control the singular version yourself, provide an object with `plural` and `singular` keys. See also the `name` option passed to `sequelize.define`. If you create multiple associations between the same tables, you should provide an alias to be able to distinguish between them. If you provide an alias when creating the association, you should provide the same alias when eager loading and when getting associated models. Defaults to the pluralized name of target
* @param {string|object} [options.foreignKey] The name of the foreign key in the join table (representing the source model) or an object representing the type definition for the foreign column (see `Sequelize.define` for syntax). When using an object, you can add a `name` property to set the name of the column. Defaults to the name of source + primary key of source
* @param {string|object} [options.otherKey] The name of the foreign key in the join table (representing the target model) or an object representing the type definition for the other column (see `Sequelize.define` for syntax). When using an object, you can add a `name` property to set the name of the column. Defaults to the name of target + primary key of target
Expand Down

0 comments on commit 5c88734

Please sign in to comment.