mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04: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')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column()
|
@Column({
|
||||||
|
unique: true,
|
||||||
|
})
|
||||||
userName: string;
|
userName: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue