Skip to content

Commit

Permalink
Make usernmae unique
Browse files Browse the repository at this point in the history
  • Loading branch information
yveswehrli committed Oct 29, 2023
1 parent c293552 commit eb3313a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend/src/user/entities/user.entity.ts
Expand Up @@ -16,7 +16,9 @@ export class User {
@PrimaryGeneratedColumn()
userId: number;

@Column()
@Column({
unique: true,
})
username: string;

@Column()
Expand Down

0 comments on commit eb3313a

Please sign in to comment.