change an existing column to unique constratin sequelize code example
Example: set unique true sequelize
key: {
// needs to be unique
type: DataTypes.UUID,
allowNull: false,
unique: true
}
key: {
// needs to be unique
type: DataTypes.UUID,
allowNull: false,
unique: true
}