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