add uniq username and email
This commit is contained in:
@ -11,7 +11,7 @@ export class User {
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: false,
|
||||
unique: true,
|
||||
length: 64
|
||||
})
|
||||
email: string;
|
||||
@ -32,7 +32,7 @@ export class User {
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
unique: false,
|
||||
unique: true,
|
||||
length: 64
|
||||
})
|
||||
username: string;
|
||||
|
||||
Reference in New Issue
Block a user