fix: add missing index on Logins.email column

This commit is contained in:
Grégoire Cutzach 2024-09-10 19:07:13 +02:00
parent 4b06bf95f5
commit 9fbdafd7de
No known key found for this signature in database
GPG Key ID: AA4155BE23C375E6

View File

@ -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;