From 9fbdafd7de11fd4ef8a746ca50da8ff74fa1cfc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Cutzach?= Date: Tue, 10 Sep 2024 19:07:13 +0200 Subject: [PATCH] fix: add missing index on Logins.email column --- app/gen-server/entity/Login.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/gen-server/entity/Login.ts b/app/gen-server/entity/Login.ts index 98b7d858..516e4e8e 100644 --- a/app/gen-server/entity/Login.ts +++ b/app/gen-server/entity/Login.ts @@ -1,4 +1,4 @@ -import {BaseEntity, Column, Entity, JoinColumn, ManyToOne, PrimaryColumn} from "typeorm"; +import {BaseEntity, Column, Entity, Index, JoinColumn, ManyToOne, PrimaryColumn} from "typeorm"; import {User} from "./User"; @@ -9,6 +9,7 @@ export class Login extends BaseEntity { public id: number; // This is the normalized email address we use for equality and indexing. + @Index() @Column({type: String}) public email: string;