diff --git a/lib/associations/base.d.ts b/lib/associations/base.d.ts index da91ef3..93b5d0c 100644 --- a/lib/associations/base.d.ts +++ b/lib/associations/base.d.ts @@ -59,6 +59,11 @@ export interface AssociationOptions { */ hooks?: boolean; + /** + * The name of the foreign key in the source table + */ + sourceKey?: string | ForeignKeyOptions; + /** * The alias of this model, in singular form. 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 @@ -68,6 +73,7 @@ export interface AssociationOptions { */ as?: string | { singular: string, plural: string }; + /** * The name of the foreign key in the target table 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