import { AssociationScope } from './AssociationScope'; import { Model } from './Model'; import { ModelType } from './ModelType'; /** * ############### * * Omit: model.string * * ################ */ /** * Used for a association table in n:m associations. */ export interface ThroughOptions { /** * 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. */ model: new (...args: any[]) => S /* | string*/; /** * If true the generated join table will be paranoid * @default false */ paranoid?: boolean; /** * 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) */ scope?: AssociationScope; /** * 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 */ unique?: boolean; }