Skip to content

Commit

Permalink
fix(types): references support for string (#12407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keimeno committed Jun 26, 2020
1 parent 871157b commit 962ed3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/lib/model.d.ts
Expand Up @@ -1293,9 +1293,9 @@ export interface ModelAttributeColumnOptions<M extends Model = Model> extends Co
comment?: string;

/**
* An object with reference configurations
* An object with reference configurations or the column name as string
*/
references?: ModelAttributeColumnReferencesOptions;
references?: string | ModelAttributeColumnReferencesOptions;

/**
* What should happen when the referenced key is updated. One of CASCADE, RESTRICT, SET DEFAULT, SET NULL or
Expand Down

0 comments on commit 962ed3c

Please sign in to comment.