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 committed by David Mehren
parent 7e5eaf977d
commit 5a9634400a
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

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