sequelize add unique constraint 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
}