不要怂,就是干,撸起袖子干!

Commit 962ed3ca by Constantin Metz Committed by GitHub

fix(types): references support for string (#12407)

1 parent 871157bc
Showing with 2 additions and 2 deletions
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!