Skip to content

Commit

Permalink
fix: add missing index on Logins.email column
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaltation committed Sep 10, 2024
1 parent bd43d12 commit 3c6388c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/gen-server/entity/Login.ts
Original file line number Diff line number Diff line change
@@ -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";

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

Expand Down

0 comments on commit 3c6388c

Please sign in to comment.