mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
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:
parent
7e5eaf977d
commit
5a9634400a
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ export class User {
|
|||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column()
|
||||
@Column({
|
||||
unique: true,
|
||||
})
|
||||
userName: string;
|
||||
|
||||
@Column()
|
||||
|
|
Loading…
Reference in a new issue