Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ThroughOptions

Used for a association table in n:m associations.

Hierarchy

  • ThroughOptions

Index

Properties

model: string | ModelStatic<Model<any, any>>

The model used to join both sides of the N:M association. Can be a string if you want the model to be generated by sequelize.

paranoid?: boolean

If true the generated join table will be paranoid

default

false

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)

unique?: boolean

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)

default

true

Generated using TypeDoc