make user uuid unique

This commit is contained in:
bytedream 2023-11-29 01:30:31 +01:00
parent 9cd78231c3
commit 0ec9751f41

View File

@ -31,7 +31,7 @@ export class User extends Model {
declare playertype: 'java' | 'bedrock' | 'noauth'; declare playertype: 'java' | 'bedrock' | 'noauth';
@Column({ type: DataTypes.STRING }) @Column({ type: DataTypes.STRING })
declare password: string; declare password: string;
@Column({ type: DataTypes.UUID }) @Column({ type: DataTypes.UUID, unique: true })
@Index @Index
declare uuid: string; declare uuid: string;
} }