make user uuid unique
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user