mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -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
eaa5254418
commit
e591a65945
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