UserEntity: Make userName unique

Each username should only be given once.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-03-05 00:25:06 +01:00
parent eaa5254418
commit e591a65945

View file

@ -23,7 +23,9 @@ export class User {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
@Column({
unique: true,
})
userName: string;
@Column()