add uniq username and email

This commit is contained in:
2025-01-24 10:54:50 +07:00
parent b53f8e9c8c
commit e4f5712058

View File

@ -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;