From 962ed3ca66725e8eef2773e958d8c67a9ed5ce9a Mon Sep 17 00:00:00 2001 From: Constantin Metz <58604248+Keimeno@users.noreply.github.com> Date: Fri, 26 Jun 2020 10:20:09 +0200 Subject: [PATCH] fix(types): references support for string (#12407) --- types/lib/model.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/lib/model.d.ts b/types/lib/model.d.ts index be93a4381cfe..8297da2257b4 100644 --- a/types/lib/model.d.ts +++ b/types/lib/model.d.ts @@ -1293,9 +1293,9 @@ export interface ModelAttributeColumnOptions 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